Merge pull request #4313 from tobiasd/20180123-vier
Config::get returns null if value not set, so the check needs to be adopted
This commit is contained in:
commit
ee1b8abcfa
|
@ -10,11 +10,11 @@ $uid = Profile::getThemeUid();
|
||||||
|
|
||||||
$style = PConfig::get($uid, 'vier', 'style');
|
$style = PConfig::get($uid, 'vier', 'style');
|
||||||
|
|
||||||
if ($style == "") {
|
if (empty($style)) {
|
||||||
$style = Config::get('vier', 'style');
|
$style = Config::get('vier', 'style');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($style == "") {
|
if (empty($style)) {
|
||||||
$style = "plus";
|
$style = "plus";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue