summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-21 21:22:34 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-21 21:22:34 +0100
commit8bbb38983b8052e32063244941315fe81199e024 (patch)
treef5f41d733d6fb9997106d0e3decbd5c7096ef358 /system
parent5c87b3a9813090cbca0abf0762143e1542beee31 (diff)
Removed a second/unnecessary variable initialization and fixed a comment
Diffstat (limited to 'system')
-rw-r--r--system/helpers/date_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 7bec8079d..b186b2acb 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -771,8 +771,8 @@ if ( ! function_exists('date_range'))
{
$arg = (int) $mixed;
}
+
$period = new DatePeriod($from, new DateInterval('P1D'), $arg);
- $range = array();
foreach ($period as $date)
{
$range[] = $date->format($format);
@@ -836,7 +836,7 @@ if ( ! function_exists('date_range'))
* $unix_timestamp + 86400
*
* ... due to DST, there's a possibility of calculation errors and/or incorrect
- * hours generated (if the specified format displays such data) due to DST.
+ * hours generated (if the specified format displays such data).
*/
$from = $to = array();