update mysql library

This commit is contained in:
2015-12-10 23:15:37 +01:00
parent 174b559464
commit 5aa9105fc3
2 changed files with 21 additions and 5 deletions

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));
}
}