From 7ce3ebc46d3c0b007dd846adaa4097c69d26d0eb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 1 Nov 2015 21:04:55 +0100 Subject: make sure we only have one profile photo for a cloned channel --- include/photo/photo_driver.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/photo/photo_driver.php') 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; } -- cgit v1.2.3