summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-10 18:35:03 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-10 18:35:03 -0500
commitbe2efe254eb686c2626e4da1121d75bbea188d65 (patch)
tree68e3127665c20268adfad56553ddda3cbb00c085 /classes
parent7745917305a226fd70ea04334c7d2d0d09e3b9e9 (diff)
always return a variable by reference
darcs-hash:20081210233503-84dde-ae7e4acd0d5e42d6d743b545688ad4ad51bc5014.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/Memcached_DataObject.php4
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;
}
}