diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 2ba762c2c..f2ff5108c 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -531,6 +531,11 @@ function entity_row_to_elggstar($row) { function get_entity($guid) { static $newentity_cache; $new_entity = false; + + if (!is_numeric($guid)) { + return FALSE; + } + if ((!$newentity_cache) && (is_memcache_available())) { $newentity_cache = new ElggMemcache('new_entity_cache'); } |