aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 1bee5a2db..3426db5f2 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -366,7 +366,7 @@ function nav($template = 'default') {
'$form_security_token' => get_form_security_token('pconfig')
]);
- if (x($_SESSION, 'reload_avatar') && $observer) {
+ if (!empty($_SESSION['reload_avatar']) && $observer) {
// The avatar has been changed on the server but the browser doesn't know that,
// force the browser to reload the image from the server instead of its cache.
$tpl = get_markup_template('force_image_reload.tpl');