summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-27 08:35:07 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-27 08:35:07 -0400
commita8624b2b7278c88ff5d6daa4c8c657778235b3cc (patch)
tree1a052d3e02a360f36d16851e5b87a035d5c5b54b /classes
parent82084ab74c4050620d69a90cbacc33383a0b7e5f (diff)
slightly better check on $orig in update()
darcs-hash:20080927123507-5ed1f-57bc3843352007ae47689a94483d315984276b45.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/Memcached_DataObject.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index 84529ce9a..ef8631d5d 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -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);