From e64f2bb51b24f86921ecb27f4afd7cb0a6e71ca3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 3 Jul 2013 09:38:31 +0000 Subject: [PATCH] Fix for missing isValidSqlLink() when no database layer has been loaded. This function depends on the layer because the MySQLi extension uses objects and the (deprecated) MySQL extension resources --- inc/sql-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/sql-functions.php b/inc/sql-functions.php index b0fa506517..9e82b02daf 100644 --- a/inc/sql-functions.php +++ b/inc/sql-functions.php @@ -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 -- 2.39.5