Fix for SQL_FREERESULT()
[mailer.git] / inc / db / lib-mysql3.php
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;
 }