mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Issue #4918 - Undefined constant fix.
This commit is contained in:
parent
e6dc147074
commit
fbcef7a3c6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user