From 47ee9a6f57f1b85e16acf0c8757b1039a0879fe5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 3 Apr 2010 20:57:56 +0000 Subject: [PATCH] Pre-commit for old-lost code and convertion of double-quotes to single --- inc/db/lib-mysql3.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 02e1722fe2..cd5efd4600 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -76,7 +76,7 @@ function SQL_QUERY ($sqlString, $F, $L) { $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 @@ -144,9 +144,6 @@ function SQL_NUMROWS ($result) { 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)); -- 2.30.2