aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 83d04391f..fd0c81593 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -94,7 +94,7 @@
if (array_key_exists($name, $this->attributes))
{
// Check that we're not trying to change the guid!
- if ((array_key_exists('guid')) && ($name=='guid'))
+ if ((array_key_exists('guid', $this->attributes)) && ($name=='guid'))
return false;
$this->attributes[$name] = $value;