phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.log.inc.php,1.6.4.2,1.6.4.3


From: Chris Weiss <address@hidden>
Subject: [Phpgroupware-cvs] phpgwapi/inc class.log.inc.php,1.6.4.2,1.6.4.3
Date: Mon, 20 Oct 2003 14:02:47 +0000

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv16692/phpgwapi/inc

Modified Files:
      Tag: Version-0_9_16-branch
        class.log.inc.php 
Log Message:
fixed default prefs


Index: class.log.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.log.inc.php,v
retrieving revision 1.6.4.2
retrieving revision 1.6.4.3
diff -C2 -d -r1.6.4.2 -r1.6.4.3
*** class.log.inc.php   19 Oct 2003 01:34:02 -0000      1.6.4.2
--- class.log.inc.php   20 Oct 2003 14:02:41 -0000      1.6.4.3
***************
*** 60,63 ****
--- 60,74 ----
                );
                
+               function checkprefs()
+               {
+                       //validate defaults
+                       if 
(!isset($GLOBALS['phpgw_info']['server']['log_levels']))
+                       {
+                               
$GLOBALS['phpgw_info']['server']['log_levels']['global_level'] = 'E';
+                               
$GLOBALS['phpgw_info']['server']['log_levels']['module'] = array();
+                               
$GLOBALS['phpgw_info']['server']['log_levels']['user'] = array();
+                       }
+               }
+               
                function get_level_name($level)
                {
***************
*** 65,70 ****
                }
                
!               function is_level($level) {
! 
                        if ( 
$this->log_level_table[$GLOBALS['phpgw_info']['server']['log_levels']['global_level']]
 >= $this->log_level_table[$level] ) {
                                return true;
--- 76,82 ----
                }
                
!               function is_level($level) 
!               {
!                       $this->checkprefs();
                        if ( 
$this->log_level_table[$GLOBALS['phpgw_info']['server']['log_levels']['global_level']]
 >= $this->log_level_table[$level] ) {
                                return true;





reply via email to

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