From: Jan Schneider Date: Thu, 26 Aug 2010 16:42:37 +0000 (+0200) Subject: Add getErrors(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=98a35a329803b90e1530f24660b002495d35b81a;p=horde.git Add getErrors(). --- diff --git a/framework/Form/Form.php b/framework/Form/Form.php index 0d374b729..9f7bb94e1 100644 --- a/framework/Form/Form.php +++ b/framework/Form/Form.php @@ -644,6 +644,11 @@ class Horde_Form { $this->_errors = array(); } + function getErrors() + { + return $this->_errors; + } + function getError($var) { if (is_a($var, 'Horde_Form_Variable')) { diff --git a/whups/ticket/type.php b/whups/ticket/type.php index 03bb182ff..ce029ae29 100644 --- a/whups/ticket/type.php +++ b/whups/ticket/type.php @@ -115,7 +115,7 @@ if ($form == 'settypestep2form') { $ticket->show(); } } else { - $notification->push(var_export($settypeform->_errors), 'horde.error'); + $notification->push(var_export($settypeform->getErrors()), 'horde.error'); $action = 'st2'; } }