Code cleanup after db_pager optimization.
[fa-stable.git] / purchasing / allocations / supplier_allocation_main.php
index 69d342fa9996f31e619e78252432bf3b566cc636..4796399d97770ef515a47560b6165b411abb9e6f 100644 (file)
@@ -64,7 +64,7 @@ function systype_name($dummy, $type)
 {
        global $systypes_array;
 
-       return $systypes_array[$type;
+       return $systypes_array[$type];
 }
 
 function trans_view($trans)
@@ -117,10 +117,6 @@ if (isset($_POST['customer_id'])) {
 $table =& new_db_pager('alloc_tbl', $sql, $cols);
 $table->set_marker('check_settled', _("Marked items are settled."), 'settledbg', 'settledfg');
 
-if (get_post('_ShowSettled_update') || get_post('_supplier_id_update') ) {
-       $table->set_sql($sql);
-       $table->set_columns($cols);
-}
 $table->width = "80%";
 start_form();