api/forms: Fix array access of a notification

refs #9606
This commit is contained in:
Eric Lippmann 2015-09-07 13:49:53 +02:00
parent d3fe1e1973
commit 1fb613e811
1 changed files with 2 additions and 2 deletions

View File

@ -1119,8 +1119,8 @@ class Form extends Zend_Form
$notifications = Notification::getInstance()->popMessages();
$message = null;
foreach ($notifications as $notification) {
if ($notification['type'] === Notification::SUCCESS) {
$message = $notification['message'];
if ($notification->type === Notification::SUCCESS) {
$message = $notification->message;
break;
}
}