From bbe1b8ef4d62e1f0bafffa78c52cf4ed3293ad8a Mon Sep 17 00:00:00 2001 From: Sebastian Kostka Date: Sun, 12 Apr 2015 11:30:54 +0200 Subject: [PATCH] Update properties.php Added check if array exists, and also if the value is false --- lib/utils/properties.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/properties.php b/lib/utils/properties.php index 096e0850..a65804bf 100644 --- a/lib/utils/properties.php +++ b/lib/utils/properties.php @@ -300,12 +300,12 @@ Class Properties { return $cache->get($key); } } else { - if (isset($options['remove']) === false && isset($options['update']) === false){ + if ( (isset($options['remove']) && $options['remove'] === false) + && (isset($options['update']) && $options['update'] === false) ){ return $cache->get($key); } } - if (isset($options['remove']) && $options['remove']) { $cache->remove($key); if(!isset($options['update']) || !$options['update']) {