Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2011-01-04 21:25:08 +0300
committerrobocoder <anthon.pang@gmail.com>2011-01-04 21:25:08 +0300
commit3468bced16297749cea015f7e7b41d0fc8e5bdeb (patch)
tree18210b22b7ab3525f9c957c459a22c30922ff8e2 /core/Date.php
parent68ce2cb2b6a167fdbbd0a88f001cf71cd91af87f (diff)
php 5.1.x - Notice: Object of class Piwik_Date could not be converted to int
git-svn-id: http://dev.piwik.org/svn/trunk@3616 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Date.php')
-rw-r--r--core/Date.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Date.php b/core/Date.php
index 7ba3461f88..cf09932b2b 100644
--- a/core/Date.php
+++ b/core/Date.php
@@ -44,6 +44,10 @@ class Piwik_Date
*/
static public function factory($dateString, $timezone = null)
{
+ if($dateString instanceof self)
+ {
+ $dateString = $dateString->toString();
+ }
if($dateString == 'now')
{
$date = self::now();