1
0
Fork 0

Merge pull request #2323 from annando/1601-dfrn-import

Complete rewrite of DFRN import
This commit is contained in:
fabrixxm 2016-02-08 15:48:16 +01:00
commit 0c67c89715
7 changed files with 1451 additions and 2192 deletions

View file

@ -392,7 +392,11 @@ function ping_get_notifications($uid) {
// Replace the name with {0} but ensure to make that only once
// The {0} is used later and prints the name in bold.
$pos = strpos($notification["message"],$notification['name']);
if ($notification['name'] != "")
$pos = strpos($notification["message"],$notification['name']);
else
$pos = false;
if ($pos !== false)
$notification["message"] = substr_replace($notification["message"],"{0}",$pos,strlen($notification["name"]));