update mysql library

This commit is contained in:
franzz committed 2015-12-10 23:15:37 +01:00
1 parent 174b559464
commit 5aa9105fc3
2 files changed
+21 -5

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ abstract class Main extends PhpObject
const ERROR = 'error';
const UNAUTHORIZED = 'unauthorized';
const NOT_FOUND = 'unknown action';
const NO_DATA = 'No Data';
//...
//Folders
@@ -148,7 +149,7 @@ abstract class Main extends PhpObject
public static function getJsonResult($bSuccess, $sDesc, $asVars=array())
{
header('Content-type: application/json');
return json_encode(array('result'=>$bSuccess?self::SUCCESS:self::ERROR, 'desc'=>ToolBox::mb_ucwords($sDesc))+$asVars);
return json_encode(array('result'=>$bSuccess?self::SUCCESS:self::ERROR, 'desc'=>ToolBox::mb_ucwords($sDesc), 'data'=>$asVars));
}
}