aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-01 21:04:55 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-01 21:04:55 +0100
commit7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb (patch)
tree602b9d0b04c0c09d33cdb1e32684f047e49b000e /include/photo/photo_driver.php
parent0353b0e04f86945cb640f6e12031dd18981d5aeb (diff)
downloadvolse-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/photo_driver.php')
-rw-r--r--include/photo/photo_driver.php7
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;
}