]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
always return a variable by reference
authorEvan Prodromou <evan@prodromou.name>
Wed, 10 Dec 2008 23:35:03 +0000 (18:35 -0500)
committerEvan Prodromou <evan@prodromou.name>
Wed, 10 Dec 2008 23:35:03 +0000 (18:35 -0500)
darcs-hash:20081210233503-84dde-ae7e4acd0d5e42d6d743b545688ad4ad51bc5014.gz

classes/Memcached_DataObject.php

index 674de9bc5bcc6d280206633ecc8c3fb21435d77d..7a33e158dd1e2dffa9ee0f4300b11bf5704a7237 100644 (file)
@@ -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;
                }
        }