Cleanup: removed _GET/_POST references from business logic model.
[fa-stable.git] / sales / manage / customer_branches.php
index 374d2f57d74fc1512645f382fd976d5b2658b1b9..d11915c657c88b8de7523493aed2a06c07b27ddb 100644 (file)
@@ -283,9 +283,9 @@ echo "<center>" . _("Select a customer: ") . "&nbsp;&nbsp;";
 echo customer_list('customer_id', null, false, true);
 echo "</center><br>";
 
-$num_branches = db_customer_has_branches($_POST['customer_id']);
+$num_branches = db_customer_has_branches(get_post('customer_id'));
 
-$sql = get_sql_for_customer_branches();
+$sql = get_sql_for_customer_branches(get_post('customer_id'));
 
 //------------------------------------------------------------------------------------------------
 if ($num_branches)