diff --git a/distfiles/functions.php b/distfiles/functions.php index 830f0b7..410ac30 100644 --- a/distfiles/functions.php +++ b/distfiles/functions.php @@ -953,8 +953,9 @@ function templateselect($techid, $operation) { // Displays a line enabling selection of a user or global template // $techid is the id number of the current tech - // $operation is one of "add" "edit" "delete" + // $operation is one of "add" "edit" "delete" or NULL global $db; + $isadmin = dblookup($db, "techs", "techid", "admin", $techid); echo "
"; @@ -967,10 +968,19 @@ function templateselect($techid, $operation)  or