X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fdb%2Flib-mysql3.php;h=deddd149030a674c597fe253c678c79ec69c5cbb;hb=594c7972b8abcf8086547d43e30aa8c26fb54ac4;hp=c98de977be81d2937759380e69ac50f6403a82c9;hpb=14b5a76d66703c228e667e1b4a1c8916f7a9885c;p=mailer.git diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index c98de977be..deddd14903 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -288,7 +288,7 @@ function SQL_INSERTID () { } // Escape a string for the database -function SQL_ESCAPE ($str, $secureString=true,$strip=true) { +function SQL_ESCAPE ($str, $secureString=true, $strip=true) { // Secure string first? (which is the default behaviour!) if ($secureString) { // Then do it here @@ -385,8 +385,14 @@ 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; + $GLOBALS['sql_link'] = $link; } // Checks if the link is up