aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 811bffbbd..ecaed078d 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -165,7 +165,7 @@
$filehandler->owner_guid = $entity->getGUID();
$filehandler->setFilename("profile/" . $username . $size . ".jpg");
- if ($filehandler->open("read")) {
+ if ($filehandler->exists()) {
$url = $CONFIG->url . "pg/icon/$username/$size/$icontime.jpg";