Not a bug Invalid condition in clean up category

truonglv

Well-known member
Hi. Just look up on ControllerAdmin_Category line 203:

PHP:
if (!$id || $info)
        {
            return $this->responseRedirect(
                XenForo_ControllerResponse_Redirect::RESOURCE_CANONICAL,
                XenForo_Link::buildAdminLink('resource-categories')
            );
        }

I think it should be:
PHP:
if (!$id || !$info)
        {
            return $this->responseRedirect(
                XenForo_ControllerResponse_Redirect::RESOURCE_CANONICAL,
                XenForo_Link::buildAdminLink('resource-categories')
            );
        }
 
Top Bottom