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 b0fa506..9e82b02 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