diff options
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index c87eb63b662..887c3f33402 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -289,12 +289,7 @@ class OC_Helper { **/ public static function userAvatarSet($user) { $avatar = new \OC_Avatar($user); - $image = $avatar->get(1); - if ($image instanceof \OC_Image) { - return true; - } else { - return false; - } + return $avatar->exists(); } /** |