From 1aa0f0bbcaa795f7224990756d03756df8b875a0 Mon Sep 17 00:00:00 2001 From: Richard Underwood Date: Fri, 30 Sep 2016 16:31:17 +0100 Subject: [PATCH] Added a check as jtable expects a list here. --- includes/misc.inc.php | 4 ++++ 1 file changed, 4 insertions(+) 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";