Avoid a warning

This commit is contained in:
Loïc Chapeaux
2001-05-19 21:36:45 +00:00
parent bda513743f
commit 50df8b6678

View File

@@ -59,7 +59,11 @@ else {
$sql_query = isset($sql_query) ? stripslashes($sql_query) : '';
$sql_order = isset($sql_order) ? stripslashes($sql_order) : '';
}
if(isset($sessionMaxRows) )
else {
if (!isset($sql_query)) $sql_query = '';
if (!isset($sql_order)) $sql_order = '';
}
if(isset($sessionMaxRows))
$cfgMaxRows = $sessionMaxRows;
$sql_limit = (isset($pos) && eregi("^SELECT", $sql_query) && !eregi("LIMIT[ 0-9,]+$", $sql_query)) ? " LIMIT $pos, $cfgMaxRows" : '';
$result = mysql_db_query($db, $sql_query.$sql_order.$sql_limit);