From 71f71ecf46c9dfc522685d171fbaf9bc7d73b708 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 1 Sep 2011 21:54:04 -0700 Subject: [PATCH] error viewing logfiles over 2Gb --- mod/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/admin.php b/mod/admin.php index 72544ee701..e42fe93f64 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -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 = '';