From 1a4c9a9c2a6d772c1b09d2f6631585519322dc7d Mon Sep 17 00:00:00 2001 From: Rod Wright Date: Wed, 18 Feb 2026 12:37:45 -0500 Subject: [PATCH] Fixed bug where the shifts weren't being shown in the existing techs table. --- distfiles/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distfiles/admin.php b/distfiles/admin.php index 25c8747..dd5959c 100644 --- a/distfiles/admin.php +++ b/distfiles/admin.php @@ -794,7 +794,7 @@ switch($table) { $shiftrow=mysqli_query($db,"select * from shifts"); while ($shiftitem=mysqli_fetch_assoc($shiftrow)) { if ($shiftitem["status"] == 1) { - if ($shiftitem["shiftid"]==$customshiftnum) { + if ($shiftitem["shiftid"]==$shift) { printf("",$shiftitem["shiftid"],$shiftitem["shiftname"]); } else { printf("",$shiftitem["shiftid"],$shiftitem["shiftname"]); @@ -830,7 +830,7 @@ switch($table) { } else { $statdef="\"inactive\""; } - $shiftname=dblookup($db,"shifts","shiftname","shiftid",$shift); + $shiftname=dblookup($db,"shifts","shiftid","shiftname",$tablerow["shift"]); printf(" %s