Skip to content

Commit

Permalink
Use setErrorCode and setErrorMessage from setError method so error me…
Browse files Browse the repository at this point in the history
…ssages are always concatenated.

git-svn-id: http://voip.null.ro/svn/ansql/trunk@140 dbfed7de-b0aa-0410-b6a1-c7e608b77fc9
  • Loading branch information
monica committed Jan 27, 2015
1 parent b56afef commit efd4a56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base_classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public function setError($p1=NULL,$p2=NULL)
Debug::func_start(__METHOD__,func_get_args(),"ansql");
$this->status = false;
if (is_numeric($p1)) {
$this->code = $p1;
$this->error_message = $p2;
$this->setErrorCode($p1);
$this->setErrorMessage($p2);
} else {
$this->error_message = $p1;
$this->code = $p2;
$this->setErrorMessage($p1);
$this->setErrorCode($p2);
}
}

Expand Down

0 comments on commit efd4a56

Please sign in to comment.