Checking options parameter for combos
[fa-stable.git] / includes / data_checks.inc
index 89d57d6345db521c90d791c8d30f9fdb3c9511cc..b79bf3d2357d7c5cc3981331cf06cf82728ccccd 100644 (file)
@@ -129,7 +129,7 @@ function check_db_has_bank_trans_types($msg)
 
 function db_customer_has_branches($customer_id)
 {
-       return check_empty_result("SELECT COUNT(*) FROM ".TB_PREF."cust_branch WHERE debtor_no=$customer_id");
+       return check_empty_result("SELECT COUNT(*) FROM ".TB_PREF."cust_branch WHERE debtor_no='$customer_id'");
 }
 
 function db_has_customer_branches()