Ignore:
Timestamp:
08/15/10 18:45:12 (22 months ago)
Author:
vain
Message:
  • several changes to copyright, router, bootstrap, frontcontroller and various other files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/errorhandler.core.php

    r4561 r4578  
    2424    * 
    2525    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    2726    * @author     Jens-André Koch <vain@clansuite.com> 
    2827    * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    158155        { 
    159156            # SMARTY ERRORS are thrown by trigger_error() - so they bubble up as E_USER_ERROR 
    160             # so in order to handle smarty errors with a seperated error display 
     157            # and in order to handle smarty errors with a seperated error display 
    161158            # we need to detect, if an E_USER_ERROR is incoming from SMARTY or from a template_c file (extension tpl.php) 
    162159            if( (mb_strpos(mb_strtolower($errorfile),'smarty') == true) or (mb_strpos(mb_strtolower($errorfile),'tpl.php') == true) ) 
     
    459456            } 
    460457 
    461             $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 
    462             $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 
     458            if(isset($backtrace[$i]['file'])) 
     459            { 
     460                $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 
     461                $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 
     462            } 
    463463 
    464464            # spacer 
     
    473473     * formatBacktraceArgument 
    474474     * 
    475      * performs a type check on an backtrace argument and formats it nicely 
     475     * Performs a type check on the backtrace argument and beautifies it. 
    476476     * 
    477477     * This formater is based on comments for debug-backtrace in the php manual 
     
    507507            case 'string': 
    508508                $args .= '<span>string</span> '; 
    509                 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 
    510509                if((mb_strlen($backtraceArgument) > 64)) 
    511510                { 
     511                    $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 
    512512                    $backtraceArgument . '...'; 
    513513                } 
Note: See TracChangeset for help on using the changeset viewer.