Fixed initialization of company specific settings in SysPrefs.
[fa-stable.git] / sales / sales_order_entry.php
index 7a33997245a2073a3b865efcc3a3cea0b19cb7b1..586ca10510ab12cf3dbb84dc8a2b407a836d031f 100644 (file)
@@ -633,9 +633,9 @@ function  handle_cancel_order()
 
 function create_cart($type, $trans_no)
 { 
-       global $Refs;
+       global $Refs, $SysPrefs;
 
-       if (!$_SESSION['SysPrefs']->db_ok) // create_cart is called before page() where the check is done
+       if (!$SysPrefs->db_ok) // create_cart is called before page() where the check is done
                return;
 
        processing_start();