aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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;