note about trait, and add check on request
[Pman.Base] / Pman.php
index 478b70e..aa20bf1 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -1086,7 +1086,7 @@ class Pman extends HTML_FlexyFramework_Page
         $reported = true;
         
         $out = (is_a($ex,'Exception') || is_a($ex, 'Error') ? $ex->getMessage() : $ex->toString()) .
-            ' ' . $_SERVER['REQUEST_METHOD'] . ' ' .
+            ' ' . (empty($_SERVER['REQUEST_METHOD']) ? 'cli' :  $_SERVER['REQUEST_METHOD'] ) . ' ' .
             (empty($_SERVER['REQUEST_URI'])     ? 'No URL' : $_SERVER['REQUEST_URI']) .
               ' ' .    (empty($POST) ? '' : file_get_contents('php://input')) ;