diff --git a/ChangeLog b/ChangeLog index 28c424e8b..231d2e0fd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2001-06-05 Marc Delisle * tbl_properties, tbl_printview: quote Comment field + * bug 430288: bad parsing of from | FROM 2001-06-04 Marc Delisle * tbl_change, tbl_replace: SaveAsNewRow diff --git a/sql.php3 b/sql.php3 index a61f3c654..26345bee3 100755 --- a/sql.php3 +++ b/sql.php3 @@ -71,7 +71,7 @@ else { // the same SELECT without LIMIT if(eregi("^SELECT", $sql_query)) { - $array=split('from|FROM',$sql_query,2); //read only the from-part of the query + $array=split(' from | FROM ',$sql_query,2); //read only the from-part of the query $count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries $OPresult = mysql_query($count_query); $SelectNumRows = mysql_result($OPresult,'0','count');