diff options
-rw-r--r-- | engine/lib/entities.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index a2f671d30..2f8653ce2 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1452,7 +1452,7 @@ } // Cache entity if we have a cache available - if ($newentity_cache) $newentity_cache->save($new_entity->guid, $new_entity); + if (($newentity_cache) && ($new_entity)) $newentity_cache->save($new_entity->guid, $new_entity); return $new_entity; } |