Changeset 237


Ignore:
Timestamp:
03/19/08 17:16:07 (16 years ago)
Author:
niltonneto
Message:

Correção das chamadas dos logs de erros no index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r141 r237  
    9292                        if(@is_object($GLOBALS['phpgw']->log)) 
    9393                        { 
    94                                 $GLOBALS['phpgw']->log->message(array( 
    95                                         'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1', 
    96                                         'p1'   => $menuaction, 
    97                                         'line' => __LINE__, 
    98                                         'file' => __FILE__ 
    99                                 )); 
     94                                if($menuaction) 
     95                {                        
     96                                        $GLOBALS['phpgw']->log->message(array( 
     97                                                'text' => "W-BadmenuactionVariable, menuaction missing or corrupt: $menuaction", 
     98                                                'p1'   => $menuaction, 
     99                                                'line' => __LINE__, 
     100                                                'file' => __FILE__ 
     101                                        )); 
     102                } 
    100103                        } 
    101104                } 
     
    104107                { 
    105108                        if(@is_object($GLOBALS['phpgw']->log)) 
    106                         { 
    107                                 $GLOBALS['phpgw']->log->message(array( 
    108                                         'text' => 'W-BadmenuactionVariable, attempted to access private method: %1', 
    109                                         'p1'   => $method, 
    110                                         'line' => __LINE__, 
    111                                         'file' => __FILE__ 
    112                                 )); 
     109                        {                                
     110                                if($menuaction) 
     111                {                        
     112                                        $GLOBALS['phpgw']->log->message(array( 
     113                                                'text' => "W-BadmenuactionVariable, attempted to access private method: $method", 
     114                                                'p1'   => $method, 
     115                                                'line' => __LINE__, 
     116                                                'file' => __FILE__ 
     117                                        )); 
     118                } 
    113119                        } 
    114120                } 
Note: See TracChangeset for help on using the changeset viewer.