From 07b3557c534b4d256502d389e33b33fdc51403c8 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 1 Mar 2011 21:44:43 +0000 Subject: [PATCH] Fix: With all warnings enabled in PHP, there were certain DataTables initialisations which could trigger warnings in the example server porecessing script. --- examples/examples_support/server_processing.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/examples_support/server_processing.php b/examples/examples_support/server_processing.php index ccae1009..ffeae7eb 100644 --- a/examples/examples_support/server_processing.php +++ b/examples/examples_support/server_processing.php @@ -53,6 +53,7 @@ /* * Ordering */ + $sOrder = ""; if ( isset( $_GET['iSortCol_0'] ) ) { $sOrder = "ORDER BY "; @@ -80,7 +81,7 @@ * on very large tables, and MySQL's regex functionality is very limited */ $sWhere = ""; - if ( $_GET['sSearch'] != "" ) + if ( isset($_GET['sSearch']) && $_GET['sSearch'] != "" ) { $sWhere = "WHERE ("; for ( $i=0 ; $i