]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/NotificationsManager.php
Avoid memory issue in exception
[friendica.git] / src / Core / NotificationsManager.php
index 566b701748919525e18c4a450bb3669f58e06d63..d582f21596688c16145ee28ee9cc3ec5c2a79de6 100644 (file)
@@ -229,7 +229,6 @@ class NotificationsManager extends BaseObject
         */
        private function formatNotifs(array $notifs, $ident = "")
        {
-               $notif = [];
                $arr = [];
 
                if (DBA::isResult($notifs)) {
@@ -638,6 +637,8 @@ class NotificationsManager extends BaseObject
        {
                $knowyou = '';
 
+               $arr = [];
+
                foreach ($intros as $it) {
                        // There are two kind of introduction. Contacts suggested by other contacts and normal connection requests.
                        // We have to distinguish between these two because they use different data.