From 84f9311fd53f5fa58ae55986ece9bfa7dac455c1 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 29 Aug 2019 18:08:43 +0200 Subject: fix: Fix "validate email"-related issues (#2512) * fix: Make sure $disable_aside is initialized There was a warning for an uninitialized variable, hidden in production but visible in development mode. * fix: Allow to delete account when email isn't validated --- app/Controllers/userController.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Controllers') diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php index 9e909a3b5..a1d649c0a 100644 --- a/app/Controllers/userController.php +++ b/app/Controllers/userController.php @@ -123,6 +123,7 @@ class FreshRSS_user_Controller extends Minz_ActionController { } $email_not_verified = FreshRSS_Context::$user_conf->email_validation_token !== ''; + $this->view->disable_aside = false; if ($email_not_verified) { $this->view->_layout('simple'); $this->view->disable_aside = true; -- cgit v1.2.3