From 510d6e1925c4d1621ae3efd85e117cc9bb4320f0 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 24 Oct 2009 13:21:22 +0000 Subject: [PATCH] Fixed error log warning (missing installed_extensions.inc) during upgrade to 2.2. --- includes/session.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/session.inc b/includes/session.inc index 734c1703..f449407d 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -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(); -- 2.30.2