Incorporate changes made for old version 5.2.4.3
This commit is contained in:
@@ -722,7 +722,6 @@ function showlinklist($print) {
|
||||
function nag($tech_id) {
|
||||
// nags the user if something is pending
|
||||
global $db;
|
||||
$today=mysqli_fetch_row(mysqli_query($db,"select current_date"))[0];
|
||||
// maintenance forms
|
||||
$mfpending=mysqli_num_rows(mysqli_query($db,"select maintformid from maintforms where mftech=\"$tech_id\" and pending=1"));
|
||||
if ($mfpending) {
|
||||
@@ -821,7 +820,6 @@ function get_upcoming_events() {
|
||||
// takes no arguments
|
||||
// returns an array containing arrays of upcoming event data
|
||||
global $db;
|
||||
$today=mysqli_fetch_row(mysqli_query($db,"select current_date"))[0];
|
||||
$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