From 02df5c20c019cef54675ba1e0d0f3718c43dea11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 7 Jul 2001 13:08:20 +0000 Subject: [PATCH] Fixed a bug line 85: trimming an array! --- sql.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql.php3 b/sql.php3 index 3dc7b9af3..700097d5f 100755 --- a/sql.php3 +++ b/sql.php3 @@ -82,7 +82,7 @@ else { if (eregi("^SELECT", $sql_query)) { $array = split(' from | FROM ',$sql_query,2); //read only the from-part of the query - if (!empty(trim($array[1]))) { + if (!empty($array[1])) { $count_query = "select count(*) as count from $array[1]"; //and make a count(*) to count the entries $OPresult = mysql_query($count_query); if ($OPresult) {