mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
Added a check as jtable expects a list here.
This commit is contained in:
parent
e172ba6502
commit
1aa0f0bbca
1 changed files with 4 additions and 0 deletions
|
@ -219,6 +219,10 @@ function valid_user($name) {
|
|||
}
|
||||
|
||||
function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errormessage') {
|
||||
if($records == null) {
|
||||
$records=array();
|
||||
}
|
||||
|
||||
$jTableResult = array();
|
||||
if ($method == 'error') {
|
||||
$jTableResult['Result'] = "ERROR";
|
||||
|
|
Loading…
Add table
Reference in a new issue