From 2ed85710607dcbc9336f3418007bf70d2c6ea496 Mon Sep 17 00:00:00 2001 From: "the.thales" Date: Mon, 30 Dec 2019 13:25:45 -0300 Subject: [PATCH] Included validation for return value composition, checking whether or not the request variable value is set; That would otherwhise return error --- ssp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssp.php b/ssp.php index 4569bc2..6933fdf 100644 --- a/ssp.php +++ b/ssp.php @@ -278,7 +278,7 @@ static function simple ( $request, $sql_details, $table, $primaryKey, $columns, * Output */ return array( - "draw" => intval( $request['draw'] ), + "draw" => intval( isset($request['draw']) ? $request['draw'] : "0" ), "recordsTotal" => intval( $recordsTotal ), "recordsFiltered" => intval( $recordsFiltered ), "data" => SSP::data_output( $columns, $data, $joinQuery )