Permalink
Browse files

[preload] fox notice error of debugOnlyAdmin

  • Loading branch information...
nao-pon committed Dec 28, 2017
1 parent b00b72d commit f0dcbbad13c7a976d12e41dc6ef731c050cc720a
Showing with 1 addition and 1 deletion.
  1. +1 −1 html/preload/debugOnlyAdmin.class.php
@@ -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);

0 comments on commit f0dcbba

Please sign in to comment.