projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for SQL_FREERESULT()
[mailer.git]
/
inc
/
db
/
lib-mysql3.php
diff --git
a/inc/db/lib-mysql3.php
b/inc/db/lib-mysql3.php
index 3f26d2ce900bba950f1340c7cb8a50e1a851f4d4..1a24f3928997617cc2a11b484fa5edf773e9527e 100644
(file)
--- a/
inc/db/lib-mysql3.php
+++ b/
inc/db/lib-mysql3.php
@@
-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;
}