error viewing logfiles over 2Gb

This commit is contained in:
Friendika 2011-09-01 21:54:04 -07:00
parent a33edb0042
commit 71f71ecf46
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';