summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-02-09 17:06:24 +0100
committerVincent Petry <pvince81@owncloud.com>2015-02-09 17:06:24 +0100
commit5d8f1a1de3f542a94501c45c500fde2f5fa997c4 (patch)
treed528e67ca281443d1324011cd3a97d21eedfbc5c /lib/private/helper.php
parentdc475ab3e0fad65208e64fd53b7bfbb275a97c3a (diff)
parentc644ed89a77387b7430e192b45fd5226703b8b3c (diff)
downloadnextcloud-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.php7
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();
}
/**