mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 00:54:27 +02:00
Fixing value check for configuration
This commit is contained in:
parent
86aaa6565e
commit
f536107911
6 changed files with 19 additions and 37 deletions
|
@ -71,10 +71,11 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig
|
|||
// manage array value
|
||||
$value = (preg_match("|^a:[0-9]+:{.*}$|s", $config['v']) ? unserialize($config['v']) : $config['v']);
|
||||
|
||||
return $value;
|
||||
} else {
|
||||
return '!<unset>!';
|
||||
if (isset($value) && $value !== '') {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
return '!<unset>!';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue