error viewing logfiles over 2Gb
This commit is contained in:
parent
a33edb0042
commit
71f71ecf46
1 changed files with 1 additions and 1 deletions
|
@ -632,7 +632,7 @@ function admin_page_logs(&$a){
|
|||
|
||||
$f = get_config('system','logfile');
|
||||
$size = filesize($f);
|
||||
if($size > 5000000)
|
||||
if($size > 5000000 || $size < 0)
|
||||
$size = 5000000;
|
||||
|
||||
$data = '';
|
||||
|
|
Loading…
Reference in a new issue