Rerun of connect_db_mysqli.inc.
[fa-stable.git] / includes / db / connect_db_mysqli.inc
index 87660a4f0e516d4a85ea866ca690d18d918a8b59..3519f84cf28646a17b9cb45c65859868f56cc4ef 100644 (file)
@@ -52,7 +52,7 @@ function db_query($sql, $err_msg=null)
 
        // set current db prefix
        $comp = isset($_SESSION["wa_current_user"]->cur_con) ? $_SESSION["wa_current_user"]->cur_con : 0;
-       $cur_prefix = @$db_connections[$comp]['tbpref'];
+       $cur_prefix = (string)@$db_connections[$comp]['tbpref'];
        $sql = str_replace(TB_PREF, $cur_prefix, $sql);
 
        if ($SysPrefs->show_sql)