]> git.mxchange.org Git - friendica.git/commitdiff
Config::get returns null if value not set, so the check needs to be adopted
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 23 Jan 2018 07:15:53 +0000 (08:15 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 23 Jan 2018 07:15:53 +0000 (08:15 +0100)
view/theme/vier/style.php

index 81010e38169485f0d2d352fb5c23f0dfe1d64a73..0c6667423b68ad05b436025218e81b97c8f671d6 100644 (file)
@@ -10,11 +10,11 @@ $uid = Profile::getThemeUid();
 
 $style = PConfig::get($uid, 'vier', 'style');
 
-if ($style == "") {
+if (empty($style)) {
        $style = Config::get('vier', 'style');
 }
 
-if ($style == "") {
+if (empty($style)) {
        $style = "plus";
 }