error viewing logfiles over 2Gb

This commit is contained in:
Friendika 2011-09-01 21:54:04 -07:00
parent a33edb0042
commit 71f71ecf46

View File

@ -632,7 +632,7 @@ function admin_page_logs(&$a){
$f = get_config('system','logfile'); $f = get_config('system','logfile');
$size = filesize($f); $size = filesize($f);
if($size > 5000000) if($size > 5000000 || $size < 0)
$size = 5000000; $size = 5000000;
$data = ''; $data = '';