From: Alan Knowles Date: Tue, 23 Nov 2010 05:17:55 +0000 (+0800) Subject: Pman.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=d448a983c56ac5e930574405cca483d49aba7bf8 Pman.php --- diff --git a/Pman.php b/Pman.php index 881a51e..08bdc6c 100644 --- a/Pman.php +++ b/Pman.php @@ -397,6 +397,8 @@ class Pman extends HTML_FlexyFramework_Page require_once 'Services/JSON.php'; $json = new Services_JSON(); + $this->addEvent("ERROR", false, $str); + if (!empty($_REQUEST['returnHTML']) || (isset($_SERVER['CONTENT_TYPE']) && preg_match('#multipart/form-data#i', $_SERVER['CONTENT_TYPE'])) ) { @@ -413,7 +415,7 @@ class Pman extends HTML_FlexyFramework_Page echo ""; exit; } - + echo $json->encode(array( 'success'=> false, 'data'=> array(),