DFRN import seems to work. Improvements are possible :-)
This commit is contained in:
parent
cd1f3cde00
commit
69457a4a5b
3 changed files with 43 additions and 16 deletions
|
@ -389,7 +389,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"]));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue