Pman.php
authorAlan Knowles <alan@roojs.com>
Tue, 28 Mar 2017 08:13:29 +0000 (16:13 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 28 Mar 2017 08:13:29 +0000 (16:13 +0800)
Pman.php

index cc40511..da8aa17 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -968,11 +968,14 @@ class Pman extends HTML_FlexyFramework_Page
         $out .= "\n" . implode("\n",  $ret);
         
         $this->addEvent("EXCEPTION", false, $out);
-
+        
+        if ($this->permitErrorDisplay) {
+            print_R($out);exit;
+        }
         // not sure why this is here... - perhaps doing a jerr() was actually caught by the UI, and hidden from the user..?
-        print_R($out);exit;
+        $this->jerr("An error Occured, please contact the website owner");
         
-        $this->jerr($out);
+        //$this->jerr($out);
         
         
     }