From 461f73fe93f02930347e640121651a9af8b4652b Mon Sep 17 00:00:00 2001 From: Robin Sonefors Date: Fri, 27 Jun 2014 16:41:19 +0200 Subject: [PATCH] report_options: Syntax fix Change-Id: I2c4b84f7b02a9d55d5b704fa37cc7c175d362594 Signed-off-by: Robin Sonefors --- modules/reports/libraries/Report_options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/reports/libraries/Report_options.php b/modules/reports/libraries/Report_options.php index 73ce5ea50..5a17380c9 100644 --- a/modules/reports/libraries/Report_options.php +++ b/modules/reports/libraries/Report_options.php @@ -951,7 +951,7 @@ class Report_options implements ArrayAccess, Iterator, Countable { $val = @serialize($val); } # Don't save start- or end_time when we have report_period != custom - if (in_array($key, array('start_time', 'end_time')) && isset($this->properties['report_period'] && $this['report_period'] != 'custom') { + if (in_array($key, array('start_time', 'end_time')) && isset($this->properties['report_period']) && $this['report_period'] != 'custom') { continue; } $rows[] = '(' . (int)$this['report_id'] . ', ' . $db->escape($key) . ', ' . $db->escape($val) . ')'; -- 2.11.4.GIT