phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgroupware login.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgroupware login.php
Date: Sun, 01 Oct 2006 14:55:11 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    phpgroupware
Changes by:     Dave Hall <skwashd>     06/10/01 14:55:11

Modified files:
        .              : login.php 

Log message:
        notices

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/login.php?cvsroot=phpgroupware&r1=1.109&r2=1.110

Patches:
Index: login.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/login.php,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -b -r1.109 -r1.110
--- login.php   9 Sep 2006 11:35:15 -0000       1.109
+++ login.php   1 Oct 2006 14:55:11 -0000       1.110
@@ -8,7 +8,7 @@
        * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgroupware
-       * @version $Id: login.php,v 1.109 2006/09/09 11:35:15 skwashd Exp $
+       * @version $Id: login.php,v 1.110 2006/10/01 14:55:11 skwashd Exp $
        */
 
        $phpgw_info = array();
@@ -117,10 +117,15 @@
        function check_langs()
        {
                // echo "<h1>check_langs()</h1>\n";
-               if ($GLOBALS['phpgw_info']['server']['lang_ctimes'] && 
!is_array($GLOBALS['phpgw_info']['server']['lang_ctimes']))
+               if ( isset($GLOBALS['phpgw_info']['server']['lang_ctimes'])
+                       && 
!is_array($GLOBALS['phpgw_info']['server']['lang_ctimes']))
                {
                        $GLOBALS['phpgw_info']['server']['lang_ctimes'] = 
unserialize($GLOBALS['phpgw_info']['server']['lang_ctimes']);
                }
+               else if ( 
!isset($GLOBALS['phpgw_info']['server']['lang_ctimes']) )
+               {
+                       $GLOBALS['phpgw_info']['server']['lang_ctimes'] = 
array();
+               }
                // 
_debug_array($GLOBALS['phpgw_info']['server']['lang_ctimes']);
                
                $lang = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
@@ -133,7 +138,8 @@
                        if (file_exists($fname))
                        {
                                $ctime = filectime($fname);
-                               $ltime = 
intval($GLOBALS['phpgw_info']['server']['lang_ctimes'][$lang][$app]);
+                               $ltime = 
isset($GLOBALS['phpgw_info']['server']['lang_ctimes'][$lang][$app]) 
+                                               ? 
intval($GLOBALS['phpgw_info']['server']['lang_ctimes'][$lang][$app]) : 0;
                                //echo "checking lang='$lang', app='$app', 
ctime='$ctime', ltime='$ltime'<br>\n";
                                
                                if ($ctime != $ltime)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]