From fbcef7a3c6e8ba6a42d6aa9692127ff843cede17 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 14 Jan 2023 19:01:52 -0800 Subject: [PATCH] Issue #4918 - Undefined constant fix. --- class2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class2.php b/class2.php index d075fcdf77..c1fdab07e9 100755 --- a/class2.php +++ b/class2.php @@ -1318,7 +1318,7 @@ function getperms($arg, $ap = ADMINPERMS, $path = e_SELF) { // $ap = "4"; // Just for testing. - if(!ADMIN || trim($ap) === '') + if(!deftrue('ADMIN') || trim($ap) === '') { return false; }