Skip to content

Commit

Permalink
Don't try to execute UPDATE query without fields.
Browse files Browse the repository at this point in the history
git-svn-id: http://voip.null.ro/svn/ansql/trunk@109 dbfed7de-b0aa-0410-b6a1-c7e608b77fc9
  • Loading branch information
dana committed Aug 12, 2014
1 parent d3c7ada commit d818f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,8 @@ public function update($conditions = array(), $verifications = array())
else
$update_log .= "$var_name=***";
}
if ($variables == "")
return array(true, _('Nothing to update in ')._($obj_name).".",array());
$obj_name = $this->getObjectName();
if($error != "")
return array(false,_("Failed to update").' '._($obj_name).".".$error, $error_fields,0);
Expand Down

0 comments on commit d818f58

Please sign in to comment.