From: Evan Prodromou Date: Wed, 10 Dec 2008 23:35:03 +0000 (-0500) Subject: always return a variable by reference X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be2efe254eb686c2626e4da1121d75bbea188d65;p=quix0rs-gnu-social.git always return a variable by reference darcs-hash:20081210233503-84dde-ae7e4acd0d5e42d6d743b545688ad4ad51bc5014.gz --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 674de9bc5b..7a33e158dd 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; } }