Skip to content

Commit

Permalink
Issue #4918 - Undefined constant fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jan 15, 2023
1 parent e6dc147 commit fbcef7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fbcef7a

Please sign in to comment.