aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 17:44:52 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 17:44:52 +0000
commit46dd43f10bfd04792c4d3cc17d86b9cc308ccfd2 (patch)
treecfb31aae6a556cda5b5991c4ede5e060afddc483
parentfdb4b147001fb40151e39f4b846b928914c306d7 (diff)
downloadelgg-46dd43f10bfd04792c4d3cc17d86b9cc308ccfd2.tar.gz
elgg-46dd43f10bfd04792c4d3cc17d86b9cc308ccfd2.tar.bz2
Added extra belts and braces check (minor)
git-svn-id: https://code.elgg.org/elgg/trunk@2550 36083f99-b078-4883-b0ff-0f9b5a30f544
-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 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;
}