Pre-commit for old-lost code and convertion of double-quotes to single
authorRoland Häder <roland@mxchange.org>
Sat, 3 Apr 2010 20:57:56 +0000 (20:57 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 3 Apr 2010 20:57:56 +0000 (20:57 +0000)
inc/db/lib-mysql3.php

index 02e1722fe25d3d1b08db80b59f99d2429e2c38b6..cd5efd46002ad1c872a9e526ae91c6721805f530 100644 (file)
@@ -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));