From bef29e60c86bfcd3c17a634da3ad8dd868881387 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 6 Nov 2008 14:07:21 +0000 Subject: isset fixes git-svn-id: https://code.elgg.org/elgg/trunk@2413 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/cache.php') diff --git a/engine/lib/cache.php b/engine/lib/cache.php index 23f3c302b..9355556a0 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -85,7 +85,7 @@ * @param string $key The name of the attribute or metadata. * @return bool */ - function __isset($key) { if ($this->load($key)!="") return true; else return false; } + function __isset($key) { return (bool)$this->load($key); } /** * Supporting unsetting of magic attributes. -- cgit v1.2.3