Fixed php 7.2 count() compatibility and intval cast in number_format2 parameter 2.
[fa-stable.git] / admin / db / maintenance_db.inc
index ab7334f0258a387d721a93bfe4ba729c3725b2f6..af6f577707aea8ebc5fce81357e9fe8bc75a1b70 100644 (file)
@@ -183,7 +183,7 @@ function update_extensions($extensions) {
        }
 
        // update per company files
-       $cnt = max(1, count($db_connections));
+       $cnt = max(1, count_array($db_connections));
        for($i = 0; $i < $cnt; $i++) 
        {
                $newexts = $extensions;