From: Roland Häder <roland@mxchange.org>
Date: Sat, 3 Apr 2010 20:57:56 +0000 (+0000)
Subject: Pre-commit for old-lost code and convertion of double-quotes to single
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=47ee9a6f57f1b85e16acf0c8757b1039a0879fe5;p=mailer.git

Pre-commit for old-lost code and convertion of double-quotes to single
---

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));