diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-17 21:25:18 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-17 21:25:18 +0100 |
commit | 8a4ee0506cf8acd61c716976fb6760504ce2e8bc (patch) | |
tree | 187513a15b5b2fc84aebba17fb0236779dc94f53 | |
parent | 8e6ebd4f7b84157dec9f4bacc997be71c990a43c (diff) | |
download | volse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.tar.gz volse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.tar.bz2 volse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.zip |
use substr() instead of str_replace()
-rw-r--r-- | Zotlabs/Module/Ping.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php index 39f123d21..d05acba6c 100644 --- a/Zotlabs/Module/Ping.php +++ b/Zotlabs/Module/Ping.php @@ -263,10 +263,9 @@ class Ping extends \Zotlabs\Web\Controller { if($t) { foreach($t as $tt) { $message = trim(strip_tags(bbcode($tt['msg']))); - $count = 1; if(strpos($message, $tt['xname']) === 0) - $message = str_replace($tt['xname'], '', $message, $count); + $message = substr($message, strlen($tt['xname']) + 1); $notifs[] = array( 'notify_link' => z_root() . '/notify/view/' . $tt['id'], |