]> git.mxchange.org Git - mailer.git/commitdiff
Fix for missing isValidSqlLink() when no database layer has been loaded. This functio...
authorRoland Häder <roland@mxchange.org>
Wed, 3 Jul 2013 09:38:31 +0000 (09:38 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 3 Jul 2013 09:38:31 +0000 (09:38 +0000)
inc/sql-functions.php

index b0fa5065174aec57328561c610832519390b39b1..9e82b02dafca1baa693075ec9754f159801c5fcc 100644 (file)
@@ -510,7 +510,7 @@ function setSqlLink ($file, $line, $link) {
        $GLOBALS['__sql_link'] = $link;
 
        // Re-init cache
-       $GLOBALS['__is_sql_link_up'] = isValidSqlLink($link);
+       $GLOBALS['__is_sql_link_up'] = ((function_exists('isValidSqlLink')) && (isValidSqlLink($link)));
 }
 
 // Checks if the link is up