Kohana-Log-Viewer icon indicating copy to clipboard operation
Kohana-Log-Viewer copied to clipboard

Crashes if logs directory is empty

Open Svish opened this issue 12 years ago • 1 comments

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): ?>

Svish avatar Apr 10 '12 19:04 Svish

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

ajaxray avatar Apr 11 '12 07:04 ajaxray