diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-10 18:35:03 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-10 18:35:03 -0500 |
commit | be2efe254eb686c2626e4da1121d75bbea188d65 (patch) | |
tree | 68e3127665c20268adfad56553ddda3cbb00c085 | |
parent | 7745917305a226fd70ea04334c7d2d0d09e3b9e9 (diff) |
always return a variable by reference
darcs-hash:20081210233503-84dde-ae7e4acd0d5e42d6d743b545688ad4ad51bc5014.gz
-rw-r--r-- | classes/Memcached_DataObject.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 674de9bc5..7a33e158d 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -55,10 +55,10 @@ class Memcached_DataObject extends DB_DataObject } if ($i->find(true)) { $i->encache(); - return $i; } else { - return NULL; + $i = NULL; } + return $i; } } |