From be2efe254eb686c2626e4da1121d75bbea188d65 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 10 Dec 2008 18:35:03 -0500 Subject: [PATCH] always return a variable by reference darcs-hash:20081210233503-84dde-ae7e4acd0d5e42d6d743b545688ad4ad51bc5014.gz --- classes/Memcached_DataObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.5