aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-11-15 09:51:44 -0200
committerDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2013-11-15 09:51:44 -0200
commit850081cc50dc05336bfc837c75c8831a6e90399a (patch)
treeb25ed1a6cda162102552828cdcbc2b801a31e102 /config
parentff99cf6899b67e84d58a1cce4a584f1edc9664d3 (diff)
downloadpfsense-packages-850081cc50dc05336bfc837c75c8831a6e90399a.tar.gz
pfsense-packages-850081cc50dc05336bfc837c75c8831a6e90399a.tar.bz2
pfsense-packages-850081cc50dc05336bfc837c75c8831a6e90399a.zip
sarg - fix default value (date_time_by)
Diffstat (limited to 'config')
-rw-r--r--config/sarg/sarg.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index 59b7eb11..7495f3b0 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -272,6 +272,8 @@ function sync_package_sarg() {
$bytes_in_sites_users_report=(preg_match('/bytes_in_sites_users_report/',$sarg['report_options'])?"yes":"no");
$date_time_by=(preg_match('/date_time_by_bytes/',$sarg['report_options'])?"bytes":"");
$date_time_by.=(preg_match('/date_time_by_elap/',$sarg['report_options'])?" elap":"");
+ if($date_time_by == "")
+ $date_time_by="bytes";
$date_format=(preg_match("/\w/",$sarg['report_date_format'])?$sarg['report_date_format']:"u");
$report_type=preg_replace('/,/',' ',$sarg['report_type']);
$report_charset=(empty($sarg['report_charset'])?"UTF-8":$sarg['report_charset']);