Page blocked during FA upgrade
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 4 Sep 2010 19:28:03 +0000 (19:28 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 4 Sep 2010 19:28:03 +0000 (19:28 +0000)
sales/sales_order_entry.php

index ef35d2ba5019a1bb52f1d0bc7d408e790f0bb3ef..82e3fbd419a4fc790cf9b7d83f580cd3439d254b 100644 (file)
@@ -574,6 +574,9 @@ function create_cart($type, $trans_no)
 { 
        global $Refs;
 
+       if (!$_SESSION['SysPrefs']->db_ok) // create_cart is called before page() where the check is done
+               return;
+
        processing_start();
 
        if (isset($_GET['NewQuoteToSalesOrder']))