diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-01 21:04:55 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-01 21:04:55 +0100 |
commit | 7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb (patch) | |
tree | 602b9d0b04c0c09d33cdb1e32684f047e49b000e /include/photo | |
parent | 0353b0e04f86945cb640f6e12031dd18981d5aeb (diff) | |
download | volse-hubzilla-7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb.tar.gz volse-hubzilla-7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb.tar.bz2 volse-hubzilla-7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb.zip |
make sure we only have one profile photo for a cloned channel
Diffstat (limited to 'include/photo')
-rw-r--r-- | include/photo/photo_driver.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index e980a96e1..285cbc8fb 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -734,6 +734,11 @@ function import_channel_photo($photo,$type,$aid,$uid) { $photo_failure = true; } - return(($photo_failure)? false : true); + //return(($photo_failure)? false : true); + + if($photo_failure) + return false; + else + return $hash; } |