diff --git a/phpgwapi/inc/class.accounts_sql.inc_wip.php b/phpgwapi/inc/class.accounts_sql.inc_wip.php index 23bf30ae6f..ebafa8960c 100644 --- a/phpgwapi/inc/class.accounts_sql.inc_wip.php +++ b/phpgwapi/inc/class.accounts_sql.inc_wip.php @@ -230,7 +230,7 @@ // Loop until we find a free id $free = 0; while (!$free) { - if $this->exists($nextid) + if ($this->exists($nextid)) { $nextid = $phpgw->common->next_id("accounts_sql",$min,$max); }