]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
slightly better check on $orig in update()
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 27 Sep 2008 12:35:07 +0000 (08:35 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 27 Sep 2008 12:35:07 +0000 (08:35 -0400)
darcs-hash:20080927123507-5ed1f-57bc3843352007ae47689a94483d315984276b45.gz

classes/Memcached_DataObject.php

index 84529ce9a6e7c5eb43dd45d3e293ff8c86f91b0d..ef8631d5d527fc57872da19556f090387a5000e3 100644 (file)
@@ -53,7 +53,7 @@ class Memcached_DataObject extends DB_DataObject
        }
        
        function update($orig=NULL) {
-               if (!is_null($orig)) {
+               if (is_object($orig) && $orig instanceof Memcached_DataObject) {
                        $orig->decache(); # might be different keys
                }
                $result = parent::update($orig);