Fixed error log warning (missing installed_extensions.inc) during upgrade to 2.2.
[fa-stable.git] / includes / session.inc
index 734c17036f9d2160bf55d535380c7f01f284323f..f449407d9af302f698a555bb4d4810c8c86dec6d 100644 (file)
@@ -245,7 +245,8 @@ if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){
                }
        }
 
-       include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
+       if (!$_SESSION["wa_current_user"]->old_db)
+               include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
 
        if (!isset($_SESSION["App"])) {
                $_SESSION["App"] = new front_accounting();