aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-05 21:04:53 -0700
committerFriendika <info@friendika.com>2011-10-05 21:04:53 -0700
commitce11d231b8157568a48bf046ae28ef23e500887e (patch)
tree91651f2d0b04034e77b23058f890566ee933c802 /include/diaspora.php
parentd0bef869dbd8d40f668f631a7875acd18886a464 (diff)
downloadvolse-hubzilla-ce11d231b8157568a48bf046ae28ef23e500887e.tar.gz
volse-hubzilla-ce11d231b8157568a48bf046ae28ef23e500887e.tar.bz2
volse-hubzilla-ce11d231b8157568a48bf046ae28ef23e500887e.zip
use strpos instead of strstr, faster
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index cdb1d6d11..93e7d2cdb 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -762,7 +762,7 @@ function diaspora_photo($importer,$xml,$msg) {
$link_text = '[img]' . $remote_photo_path . $remote_photo_name . '[/img]' . "\n";
- if(! strstr($parent_item['body'],$link_text)) {
+ if(strpos($parent_item['body'],$link_text) === false) {
$r = q("update item set `body` = '%s' where `id` = %d and `uid` = %d limit 1",
dbesc($link_text . $parent_item['body']),
intval($parent_item['id']),