ajaxray / Kohana-Log-Viewer

Shows log files of Kohana PHP Framework with a beautiful interface
52 stars 25 forks source link

Crashes if logs directory is empty #2

Open Svish opened 12 years ago

Svish commented 12 years ago

I get an exception if the logs directory is empty.

ErrorException [ Notice ]: Undefined variable: months MODPATH\logviewer\views\logs\monthlist.php [ 5 ]

Fixed it by changing line 5 in monthlist.php and daylist.php to

    <?php if( ! empty($months)) foreach($months as $month): ?>
    <?php if( ! empty($days)) foreach($days as $day): ?>
ajaxray commented 12 years ago

Hello Svish, Thanks a lot for reporting. Fixing ASAP.