Finished the orders section of the store.

git-svn-id: http://svn.cleancode.org/svn/pickles@120 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2009-05-18 02:07:31 +00:00
parent 3e58d2c659
commit 4e1006d3cd
11 changed files with 4708 additions and 145 deletions

View file

@ -97,9 +97,10 @@ class Error extends Object {
* Determines if there are any stored errors or warnings
*
* @return boolean Whether or not there are any errors or warnings.
* @todo Rename this to something like hasError()... not sure why I called it isError()
*/
public function isError() {
if (isset($this->errors, $this->warnings)) {
if (isset($this->errors) || isset($this->warnings)) {
return true;
}