Incorporate changes made for old version 5.2.4.4.
This commit is contained in:
@@ -721,7 +721,7 @@ function showlinklist($print) {
|
||||
|
||||
function nag($tech_id) {
|
||||
// nags the user if something is pending
|
||||
global $db;
|
||||
global $db, $today;
|
||||
// maintenance forms
|
||||
$mfpending=mysqli_num_rows(mysqli_query($db,"select maintformid from maintforms where mftech=\"$tech_id\" and pending=1"));
|
||||
if ($mfpending) {
|
||||
@@ -819,7 +819,7 @@ function get_upcoming_events() {
|
||||
// build array of upcoming events
|
||||
// takes no arguments
|
||||
// returns an array containing arrays of upcoming event data
|
||||
global $db;
|
||||
global $db, $today;
|
||||
$uceventsqry=mysqli_query($db,"select * from events where active_flag=\"1\" and (deferred_flag=\"0\" or (deferred_flag=\"1\" and deferred_date <= \"$today\"))");
|
||||
$ucevents=array();
|
||||
while ($uceventrow=mysqli_fetch_assoc($uceventsqry)) {
|
||||
|
||||
Reference in New Issue
Block a user