aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-12-04 14:36:29 +0100
committerMax Kostikov <max@kostikov.co>2020-12-04 14:36:29 +0100
commitb26b1c08201e7425be8204f6d174f6310c1d2919 (patch)
treee1b6ec7b55785411c86259f5f2a88fe6085b409e
parenta9dd6d6bdbc27e11ffe71644670686d82e05420f (diff)
downloadvolse-hubzilla-b26b1c08201e7425be8204f6d174f6310c1d2919.tar.gz
volse-hubzilla-b26b1c08201e7425be8204f6d174f6310c1d2919.tar.bz2
volse-hubzilla-b26b1c08201e7425be8204f6d174f6310c1d2919.zip
Skip profile photo query from addons for undefined channel id
-rw-r--r--Zotlabs/Module/Photo.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index c88696578..1e8fc94df 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -81,18 +81,18 @@ class Photo extends \Zotlabs\Web\Controller {
else
$data = dbunescbin($r[0]['content']);
}
- }
- if(! $data) {
- $d = [ 'imgscale' => $resolution, 'channel_id' => $uid, 'default' => $default, 'data' => '', 'mimetype' => '' ];
- call_hooks('get_profile_photo',$d);
+ if(! $data) {
+ $d = [ 'imgscale' => $resolution, 'channel_id' => $uid, 'default' => $default, 'data' => '', 'mimetype' => '' ];
+ call_hooks('get_profile_photo',$d);
- $resolution = $d['imgscale'];
- $uid = $d['channel_id'];
- $default = $d['default'];
- $data = $d['data'];
- $mimetype = $d['mimetype'];
- $modified = 0;
+ $resolution = $d['imgscale'];
+ $uid = $d['channel_id'];
+ $default = $d['default'];
+ $data = $d['data'];
+ $mimetype = $d['mimetype'];
+ $modified = 0;
+ }
}
if(! $data) {