From d3919a98715f7ea0f5d2c3f8625ddacede68151e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 17 Jul 2006 20:18:10 +0000 Subject: [PATCH] Changed some of the API error messages to reflect what actually caused the error --- api.php | 4 ++-- dev/changes.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index 68eb613..e197425 100644 --- a/api.php +++ b/api.php @@ -463,7 +463,7 @@ class API { if ($this->condition == '') { - trigger_error('Condition is empty: cannot fetch', E_USER_ERROR); + trigger_error('Condition is empty: cannot update', E_USER_ERROR); } $this->run_action_method('pre_update'); @@ -491,7 +491,7 @@ class API { if ($this->condition == '') { - trigger_error('Condition is empty: cannot fetch', E_USER_ERROR); + trigger_error('Condition is empty: cannot delete', E_USER_ERROR); } if ($runset) diff --git a/dev/changes.txt b/dev/changes.txt index e5a92c0..2edb106 100644 --- a/dev/changes.txt +++ b/dev/changes.txt @@ -6,6 +6,7 @@ - No longer populate API->values[] when calling API->fetch() [api.php] - Added a parameter in Mail->send() to optionally clear the to list after sending [mail.php] - Added a parameter in API->delete() to optionally stop the running of API->set_existing() [api.php] +- Changed some of the API error messages to reflect what actually caused the error [api.php] 2.0.0 =============== -- 2.22.5