aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-17 21:25:18 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-17 21:25:18 +0100
commit8a4ee0506cf8acd61c716976fb6760504ce2e8bc (patch)
tree187513a15b5b2fc84aebba17fb0236779dc94f53 /Zotlabs/Module
parent8e6ebd4f7b84157dec9f4bacc997be71c990a43c (diff)
downloadvolse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.tar.gz
volse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.tar.bz2
volse-hubzilla-8a4ee0506cf8acd61c716976fb6760504ce2e8bc.zip
use substr() instead of str_replace()
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Ping.php3
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'],