Typo fixed, OMG
[mailer.git] / inc / db / lib-mysql3.php
index c98de977be81d2937759380e69ac50f6403a82c9..bcdf041e3668e2a9bd7d81f7ff254fc03f3de647 100644 (file)
@@ -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