forked from extern/egroupware
Remove break which causes error, and detect error another way
This commit is contained in:
parent
1c8e2629c5
commit
aeb222d5d7
@ -727,14 +727,16 @@
|
||||
{
|
||||
/* Errors encountered during validation */
|
||||
$errors = $ab_id;
|
||||
break;
|
||||
}
|
||||
// $ab_id = $this->bo->get_lastid();
|
||||
|
||||
if(!$errors)
|
||||
{
|
||||
Header('Location: '
|
||||
. $GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.view&ab_id=' . $ab_id . '&referer=' . $referer));
|
||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||
}
|
||||
}
|
||||
|
||||
$GLOBALS['phpgw']->template->set_file(array('add' => 'add.tpl'));
|
||||
|
||||
@ -743,7 +745,6 @@
|
||||
echo parse_navbar();
|
||||
|
||||
$custom = $this->fields->read_custom_fields();
|
||||
// while(list($x,$y) = @each($custom))
|
||||
foreach($custom as $x => $y)
|
||||
{
|
||||
$customfields[$y['name']] = $y['title'];
|
||||
|
Loading…
Reference in New Issue
Block a user