diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-24 14:18:25 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-24 14:18:25 -0700 |
commit | abf2ce873b23f238041c4b4190dc709b2d40774d (patch) | |
tree | 17789e226c170b7378dc6d41ba6ee9f6965541b2 /classes/Memcached_DataObject.php | |
parent | 64b5ea2e6238017fba5ad53274d26d53ed2b5fb3 (diff) |
Avoid notice when reporting DB errors for objects that don't have an 'id' field
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index bc4c3a000..af148ef69 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -502,7 +502,7 @@ class Memcached_DataObject extends Safe_DataObject function raiseError($message, $type = null, $behaviour = null) { $id = get_class($this); - if ($this->id) { + if (!empty($this->id)) { $id .= ':' . $this->id; } throw new ServerException("[$id] DB_DataObject error [$type]: $message"); |