Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / purchasing / allocations / supplier_allocation_main.php
index 78b0b66059704369dddce0305e97b39abaad3162..69d342fa9996f31e619e78252432bf3b566cc636 100644 (file)
@@ -47,7 +47,7 @@ start_form();
        end_form();
        set_global_supplier($_POST['supplier_id']);
 
-       if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == reserved_words::get_all())) 
+       if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == ALL_TEXT)) 
        {
                unset($_POST['supplier_id']);
        }
@@ -62,7 +62,9 @@ start_form();
 //--------------------------------------------------------------------------------
 function systype_name($dummy, $type)
 {
-       return systypes::name($type);
+       global $systypes_array;
+
+       return $systypes_array[$type;
 }
 
 function trans_view($trans)