]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/NotificationsManager.php
Review update
[friendica.git] / src / Core / NotificationsManager.php
index e88b4218b5523182c7ec9ac31bfcc977b5105b49..7c2760a85be62f85ad98bc4ee978288c6d6601dd 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Util\XML;
 
 require_once 'include/dba.php';
 require_once 'include/html2plain.php';
@@ -337,7 +338,7 @@ class NotificationsManager extends BaseObject
 
                                        case ACTIVITY_FRIEND:
                                                $xmlhead = "<" . "?xml version='1.0' encoding='UTF-8' ?" . ">";
-                                               $obj = parse_xml_string($xmlhead . $it['object']);
+                                               $obj = XML::parseString($xmlhead . $it['object']);
                                                $it['fname'] = $obj->title;
 
                                                $notif = [