removes php warnings

This commit is contained in:
Hannes Mannerheim 2014-10-06 11:56:34 +02:00
parent afd4fb3b07
commit 461a1844bc

View File

@ -87,6 +87,8 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
$notifications_populated = array();
if(!empty($this->notifications)) {
foreach($this->notifications as $notification) {
// all but follow has an notice
@ -112,6 +114,8 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
}
}
}
$this->initDocument('json');
$this->showJsonObjects($notifications_populated);
$this->endDocument('json');