mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-12 06:54:28 +01:00
Update properties.php
Added check if array exists, and also if the value is false
This commit is contained in:
parent
971c1e9d6d
commit
bbe1b8ef4d
@ -300,12 +300,12 @@ Class Properties {
|
|||||||
return $cache->get($key);
|
return $cache->get($key);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
return $cache->get($key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (isset($options['remove']) && $options['remove']) {
|
if (isset($options['remove']) && $options['remove']) {
|
||||||
$cache->remove($key);
|
$cache->remove($key);
|
||||||
if(!isset($options['update']) || !$options['update']) {
|
if(!isset($options['update']) || !$options['update']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user