From 14bb18cad859e2555eafe5a80a80c019802fe512 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 28 Sep 2009 11:43:30 -0400 Subject: [PATCH] Make sure $end is a Horde_Date object --- timeobjects/lib/Driver/Weatherdotcom.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/timeobjects/lib/Driver/Weatherdotcom.php b/timeobjects/lib/Driver/Weatherdotcom.php index 2c43ce90d..9f3d2e111 100644 --- a/timeobjects/lib/Driver/Weatherdotcom.php +++ b/timeobjects/lib/Driver/Weatherdotcom.php @@ -76,6 +76,8 @@ class TimeObjects_Driver_Weatherdotcom extends TimeObjects_Driver // range. $forecast_start = new Horde_Date(time()); $forecast_end = new Horde_Date($forecast_start); + $end = new Horde_Date($end); + // Today is day 1, so subtract a day $forecast_end->mday += $this->_params['days'] - 1; if ($end->compareDate($forecast_start) <= -1 || -- 2.11.0