]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Rearrange Memcached_DataObject::staticGet() to avoid "only variables can be passed...
authorBrion Vibber <brion@status.net>
Wed, 6 Jan 2010 21:23:39 +0000 (13:23 -0800)
committerBrion Vibber <brion@status.net>
Wed, 6 Jan 2010 21:35:13 +0000 (13:35 -0800)
commit85554d0840642f4c1b47b50202dd648db565781c
tree6433ac0e202ab2416f12c789f99360856e7f9076
parent6f5b765c97c8616e4a79719bfe835cb03dc0a236
Rearrange Memcached_DataObject::staticGet() to avoid "only variables can be passed by reference" warnings when DB lookup fails and we return false.
(We need to keep it returning a reference because the extlib parent class is stuck in PHP 4-land and uses references everywhere, including this function's return value. Yuck!)

Also changed pkeyGet to drop the reference, since it doesn't have an upstream equivalent.
classes/Memcached_DataObject.php