diff options
author | Zach Copley <zach@status.net> | 2010-01-11 23:22:24 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-11 23:22:24 +0000 |
commit | 91b9c13d155cc0ea0297713d2bf2ae74f711e249 (patch) | |
tree | 21a227793197487e712c37568b340a445d8b7306 /classes/Memcached_DataObject.php | |
parent | 3a9e24e07738e9dd57cf8100610728bb1e2b789c (diff) | |
parent | f397d355276c57941617049808ff59a5f2538beb (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 21f6781c2..b68a4af8e 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -174,7 +174,7 @@ class Memcached_DataObject extends DB_DataObject $obj = $c->get(Memcached_DataObject::cacheKey($cls, $k, $v)); if (0 == strcasecmp($cls, 'User')) { // Special case for User - if (is_object($obj->id)) { + if (is_object($obj) && is_object($obj->id)) { common_log(LOG_ERR, "User " . $obj->nickname . " was cached with User as ID; deleting"); $c->delete(Memcached_DataObject::cacheKey($cls, $k, $v)); return false; |