Incorporate changes made for old version 5.2.4.4.

This commit is contained in:
2026-02-10 15:17:09 -05:00
parent 4341c87daa
commit 0265918430
9 changed files with 80 additions and 46 deletions

View File

@@ -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)) {