[pLog-svn] r7049 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Sep 27 13:05:28 EDT 2010
Author: jondaley
Date: 2010-09-27 13:05:28 -0400 (Mon, 27 Sep 2010)
New Revision: 7049
Modified:
plog/branches/lifetype-1.2/class/dao/model.class.php
Log:
need to test this, but a user complained today, and a commenter on PHP.net mentioned that get_class started throwing a warning if a non-class is passed to get_class() sometime last year
Modified: plog/branches/lifetype-1.2/class/dao/model.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/model.class.php 2010-09-22 21:59:33 UTC (rev 7048)
+++ plog/branches/lifetype-1.2/class/dao/model.class.php 2010-09-27 17:05:28 UTC (rev 7049)
@@ -393,7 +393,7 @@
{
$value = $dbObject->$getter();
if( is_array( $value )) $value = serialize( $value );
- elseif( strtolower(get_class( $value )) == "timestamp" )
+ elseif( strtolower(@get_class( $value )) == "timestamp" )
$value = $value->getTimestamp();
elseif( is_object( $value )) $value = serialize( $value );
More information about the pLog-svn
mailing list