Committing all the common code changes so that I can begin working locally.

git-svn-id: http://svn.cleancode.org/svn/pickles@4 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2007-11-09 01:27:41 +00:00
parent dcd492b443
commit d46d34d67a
88 changed files with 9960 additions and 25 deletions

View file

@ -43,7 +43,18 @@ class Error {
public function display() {
if (self::isError()) {
var_dump(self::getError(), self::getWarning());
if (self::getError()) {
foreach (self::getError() as $error) {
echo "{$error}<br />";
}
}
if (self::getWarning()) {
foreach (self::getWarning() as $error) {
echo "{$warning}<br />";
}
}
self::$errors = self::$warnings = null;
return true;
}