Avoid notice when reporting DB errors for objects that don't have an 'id' field
This commit is contained in:
parent
64b5ea2e62
commit
abf2ce873b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user