Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / sales / allocations / customer_allocation_main.php
index 4bc5cef61f31d7e617292f5da95a0c51db8bb8f9..80783de48c3c90a6d573abea0bc5ce4e3106799c 100644 (file)
@@ -42,7 +42,7 @@ start_form();
 
        set_global_customer($_POST['customer_id']);
 
-       if (isset($_POST['customer_id']) && ($_POST['customer_id'] == reserved_words::get_all()))
+       if (isset($_POST['customer_id']) && ($_POST['customer_id'] == ALL_TEXT))
        {
                unset($_POST['customer_id']);
        }
@@ -64,7 +64,9 @@ start_form();
 //--------------------------------------------------------------------------------
 function systype_name($dummy, $type)
 {
-       return systypes::name($type);
+       global $systypes_array;
+
+       return $systypes_array[$type];
 }
 
 function trans_view($trans)