Avoid a warning
This commit is contained in:
6
sql.php3
6
sql.php3
@@ -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);
|
||||
|
Reference in New Issue
Block a user