$sqlString = str_replace('{PER}', '%', $sqlString);
// Compile config entries out
- $eval = "\$sqlString = \"".FILTER_COMPILE_CONFIG(escapeQuotes($sqlString))."\";";
+ $eval = '$sqlString = "' . FILTER_COMPILE_CONFIG(escapeQuotes($sqlString)) . '";';
eval($eval);
// Starting time
if (is_resource($result)) {
// Get the count of rows from database
$lines = mysql_num_rows($result);
-
- // Is the result empty? Then we have an error!
- if (empty($lines)) $lines = '0';
} else {
// No resource given, please fix this
trigger_error('No resource given! result[]=' . gettype($result));