update mysql library
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user