projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0d05a
)
SQL_IS_LINK_UP() aborts if wether no resource or null is given
author
Roland Häder
<roland@mxchange.org>
Sat, 28 Feb 2009 23:46:35 +0000
(23:46 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sat, 28 Feb 2009 23:46:35 +0000
(23:46 +0000)
inc/db/lib-mysql3.php
patch
|
blob
|
history
diff --git
a/inc/db/lib-mysql3.php
b/inc/db/lib-mysql3.php
index c98de977be81d2937759380e69ac50f6403a82c9..10372a4a3b45e759e37384798d5302e10eac3ce3 100644
(file)
--- a/
inc/db/lib-mysql3.php
+++ b/
inc/db/lib-mysql3.php
@@
-385,6
+385,12
@@
function SQL_GET_LINK () {
// Setter for link
function SQL_SET_LINK ($link) {
+ // Is this a resource or null?
+ if ((!is_resource($link)) && (!is_null($link))) {
+ // This should never happen!
+ trigger_error(sprintf("link is not resource or null. Type: %s", gettype($link)));
+ } // END - if
+
// Set it
$GLOABLS['sql_link'] = $link;
}