Fix for SQL_FREERESULT()
authorRoland Häder <roland@mxchange.org>
Sun, 21 Sep 2008 16:24:21 +0000 (16:24 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Sep 2008 16:24:21 +0000 (16:24 +0000)
inc/databases.php
inc/db/lib-mysql3.php

index a425cc1b84e3db1f82d8d98901fddcd2ebdc139e..6793b0f1d3adcfa7f1c845d353af6edb6e0c9ea4 100644 (file)
@@ -113,7 +113,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "380");
+define('CURR_SVN_REVISION', "381");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 3f26d2ce900bba950f1340c7cb8a50e1a851f4d4..1a24f3928997617cc2a11b484fa5edf773e9527e 100644 (file)
@@ -213,6 +213,11 @@ function SQL_CLOSE(&$link, $F, $L) {
 }
 // SQL free result
 function SQL_FREERESULT($result) {
+       if (!is_resource($result)) {
+               // Abort here
+               return false;
+       } // END - if
+
        $res = @mysql_free_result($result);
        return $res;
 }