projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed warnings related to empty item/customer/supplier selector in search modes.
[fa-stable.git]
/
sales
/
manage
/
customer_branches.php
diff --git
a/sales/manage/customer_branches.php
b/sales/manage/customer_branches.php
index 2e1eae54fca9ef9e2d954d60c1e8c130d591146e..48b8e76a4501c31a4904193a35a9e648a2f3a504 100644
(file)
--- a/
sales/manage/customer_branches.php
+++ b/
sales/manage/customer_branches.php
@@
-203,7
+203,7
@@
function branch_settings($selected_id, $num_branches) {
elseif ($Mode != 'ADD_ITEM')
{
$myrow = get_default_info_for_branch($_POST['customer_id']);
elseif ($Mode != 'ADD_ITEM')
{
$myrow = get_default_info_for_branch($_POST['customer_id']);
- if(!$num_branches) {
+ if(
$myrow &&
!$num_branches) {
$_POST['br_name'] = $myrow["name"];
$_POST['br_ref'] = $myrow["debtor_ref"];
$_POST['contact_name'] = _('Main Branch');
$_POST['br_name'] = $myrow["name"];
$_POST['br_ref'] = $myrow["debtor_ref"];
$_POST['contact_name'] = _('Main Branch');