aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorGabriel Vazquez <leviatan21@phpbb.com>2009-06-24 02:56:05 +0000
committerGabriel Vazquez <leviatan21@phpbb.com>2009-06-24 02:56:05 +0000
commit19e2dcd5db7f2a910409b82ce315265608ae8266 (patch)
tree1dff215f74a2acc9330cbd2ed8d030ba45a7becb /phpBB/includes/session.php
parent723d4c562811b928528d6ff5b52069df36659b8f (diff)
downloadforums-19e2dcd5db7f2a910409b82ce315265608ae8266.tar
forums-19e2dcd5db7f2a910409b82ce315265608ae8266.tar.gz
forums-19e2dcd5db7f2a910409b82ce315265608ae8266.tar.bz2
forums-19e2dcd5db7f2a910409b82ce315265608ae8266.tar.xz
forums-19e2dcd5db7f2a910409b82ce315265608ae8266.zip
Fixed Bug #47145 - [Fix] Correctly check banned users when force password change
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9665 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 509e11e524..c1bc4b3f31 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1833,7 +1833,7 @@ class user extends session
// Does the user need to change their password? If so, redirect to the
// ucp profile reg_details page ... of course do not redirect if we're already in the ucp
- if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && $this->data['is_registered'] && $auth->acl_get('u_chgpasswd') && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
+ if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && !empty($this->data['is_registered']) && $auth->acl_get('u_chgpasswd') && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
{
if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx")
{