diff --git a/base_classes.php b/base_classes.php index 623ef8e..6e70a05 100644 --- a/base_classes.php +++ b/base_classes.php @@ -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); } }