aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-30 11:38:47 +0100
committerMax Kostikov <max@kostikov.co>2018-11-30 11:38:47 +0100
commit53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf (patch)
tree7a2b4972fd1e212b5246ae450413c2ac1516b947 /include
parent0ee403eab3a29a98f85dc9fe304c25c6f037b24a (diff)
downloadvolse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.tar.gz
volse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.tar.bz2
volse-hubzilla-53d9cbc69cecc0825c1e8fdc670cfe8ea09b03bf.zip
Check local_channel() before cache call
Diffstat (limited to 'include')
-rw-r--r--include/text.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/text.php b/include/text.php
index 866b3fa2c..6e4402a9f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1111,13 +1111,15 @@ function linkify($s, $me = false) {
function sslify($s) {
// Local photo cache
- $str = array(
- 'body' => $s,
- 'uid' => local_channel()
- );
- call_hooks('cache_body_hook', $str);
+ if(local_channel()) {
+ $str = array(
+ 'body' => $s,
+ 'uid' => local_channel()
+ );
+ call_hooks('cache_body_hook', $str);
- $s = $str['body'];
+ $s = $str['body'];
+ }
if (strpos(z_root(),'https:') === false)
return $s;