refine the use of $debug_mode
[racktables] / wwwroot / inc / exceptions.php
index bbf2115ee26dac45dc8254f10c3e07210879c567..a26a70c74fe960d42f0899fb349c4e93d5b75b50 100644 (file)
@@ -159,7 +159,7 @@ class EntityNotFoundException extends RackTablesError
        public function dispatch()
        {
                global $debug_mode;
-               if ($debug_mode)
+               if (isset ($debug_mode) && $debug_mode)
                {
                        printGenericException ($this);
                        return;