Skip to content

Commit

Permalink
[preload] fox notice error of debugOnlyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Dec 28, 2017
1 parent b00b72d commit f0dcbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/preload/debugOnlyAdmin.class.php
Expand Up @@ -6,7 +6,7 @@
class debugOnlyAdmin extends XCube_ActionFilter
{
public function postFilter() {
if ($GLOBALS['xoopsErrorHandler'] && is_object($GLOBALS['xoopsErrorHandler'])) {
if (!empty($GLOBALS['xoopsErrorHandler']) && is_object($GLOBALS['xoopsErrorHandler'])) {
$root = XCube_Root::getSingleton();
if (! $root->mContext->mUser->isInRole('Site.Administrator')) {
$GLOBALS['xoopsErrorHandler']->activate(false);
Expand Down

0 comments on commit f0dcbba

Please sign in to comment.