Skip to content

Commit

Permalink
Use clear error message when objectExists() method can't be used.
Browse files Browse the repository at this point in the history
git-svn-id: http://voip.null.ro/svn/ansql/trunk@195 dbfed7de-b0aa-0410-b6a1-c7e608b77fc9
  • Loading branch information
monica committed Jan 12, 2016
1 parent fa1a374 commit 42b52c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ public function objectExists($id_name = NULL, $columns_with_default=array())
$class = get_class($this);
if(!$id_name || !$this->variable($id_name))
{
Debug::trigger_report('critical',"$id_name "._("is not a defined variable inside the")." $class "._("object."));
Debug::trigger_report('critical',_("Class")." $class "._("doesn't have an id. You can't use method objectExists."));
exit();
}

Expand Down

0 comments on commit 42b52c3

Please sign in to comment.