1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-31 20:52:17 +01:00

Update properties.php

Added check if array exists, and also if the value is false
This commit is contained in:
Sebastian Kostka 2015-04-12 11:30:54 +02:00
parent 971c1e9d6d
commit bbe1b8ef4d

View File

@ -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']) {