diff --git a/includes/misc.inc.php b/includes/misc.inc.php index 5fa6b0b..1f57667 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -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";