diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-02-09 17:06:24 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-02-09 17:06:24 +0100 |
commit | 5d8f1a1de3f542a94501c45c500fde2f5fa997c4 (patch) | |
tree | d528e67ca281443d1324011cd3a97d21eedfbc5c /lib/private/helper.php | |
parent | dc475ab3e0fad65208e64fd53b7bfbb275a97c3a (diff) | |
parent | c644ed89a77387b7430e192b45fd5226703b8b3c (diff) | |
download | nextcloud-server-5d8f1a1de3f542a94501c45c500fde2f5fa997c4.tar.gz nextcloud-server-5d8f1a1de3f542a94501c45c500fde2f5fa997c4.zip |
Merge pull request #13854 from owncloud/avatar-exists
Add a better way to check if an avatar exists for the user
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(); } /** |