Added a check as jtable expects a list here.

This commit is contained in:
Richard Underwood 2016-09-30 16:31:17 +01:00
parent e172ba6502
commit 1aa0f0bbca

View file

@ -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";