From 6ec153c54eef63862eefd62925a0210648983423 Mon Sep 17 00:00:00 2001 From: skeeter Date: Thu, 22 Aug 2002 03:07:00 +0000 Subject: [PATCH] Added a few isset()'s. This clears a few warnings from being logged. --- phpgwapi/inc/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 0873b8cf29..1e3322afc5 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -586,14 +586,14 @@ /* Make sure user is keeping his password in order */ /* Maybe we should create a common function in the phpgw_accounts_shared.inc.php file */ /* to get rid of duplicate code. */ - if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) + if (isset($GLOBALS['phpgw_info']['user']['lastpasswd_change']) && $GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) { $message = lang('You are required to change your password during your first login') . '
Click this image on the navbar: '; $GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False; } - elseif ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) + elseif (isset($GLOBALS['phpgw_info']['user']['lastpasswd_change']) && $GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) { $message = lang('it has been more then x days since you changed your password',30); $GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False;