Fixed hangouts on php installations with zlib extension installed, fixed warnings...
[fa-stable.git] / admin / db / maintenance_db.inc
index 2823ed7c61b3222203e14f628bff5a99044655b1..cd4afdacf477f1178da6fd18352834eddaa0abba 100644 (file)
@@ -178,7 +178,7 @@ function update_extensions($extensions) {
        }
 
        // update per company files
-       $cnt = count($db_connections);
+       $cnt = max(1, count($db_connections));
        for($i = 0; $i < $cnt; $i++) 
        {
                $newexts = $extensions;
@@ -253,7 +253,9 @@ function write_lang()
 
 function db_import($filename, $connection, $force=true)
 {
-       global $db, $go_debug;
+       global $db, $go_debug, $sql_trail;
+
+       $sql_trail = false;
 
        $allowed_commands = array(
                "create"  => 'table_queries',