]> git.mxchange.org Git - friendica.git/commitdiff
Code standards in api_get_user
authorPierre Rudloff <contact@rudloff.pro>
Tue, 19 Dec 2017 10:33:59 +0000 (11:33 +0100)
committerPierre Rudloff <contact@rudloff.pro>
Tue, 19 Dec 2017 10:33:59 +0000 (11:33 +0100)
include/api.php

index 3a5247e019b8e8fe4da19476bc78b61fd4287fd9..7b1fee733c59eac1208c02e856b88d7a972343b5 100644 (file)
@@ -785,10 +785,10 @@ function api_get_user(App $a, $contact_id = null)
                $theme_info = dba::select('user', ['theme'], ['uid' => $ret['uid']], ['limit' => 1]);
                if ($theme_info['theme'] === 'frio') {
                        $schema = PConfig::get($ret['uid'], 'frio', 'schema');
-                       if (($schema) && ($schema != '---')) {
+                       if ($schema && ($schema != '---')) {
                                if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
                                        $schemefile = 'view/theme/frio/schema/'.$schema.'.php';
-                                       require_once($schemefile);
+                                       require_once $schemefile;
                                }
                        } else {
                                $nav_bg = PConfig::get($ret['uid'], 'frio', 'nav_bg');