Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 10, 2022
1 parent 12a53c4 commit e8d0e11
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions public_html/lib-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
* lib-custom.php you will find upgrading much easier.
*/

// Prevent PhpStorm from complaining about "undefined variables"
$_CONF = [];
$MESSAGE = [];
$_TABLES = [];
$_USER = [];
$LANG_ISO639_1 = 'en';

/**
* Prevent getting any surprise values. But we should really stop
* using $_REQUEST altogether.
Expand Down Expand Up @@ -892,13 +899,13 @@ function COM_getThemes($all = false, $valid = true, $info = false)
global $_CONF;

$index = 1;
$themes = array();
$themes = [];

// If users aren't allowed to change their theme then only return the default theme

if (($_CONF['allow_user_themes'] == 0) && !$all) {
if ($info) {
$themes[$dir] = COM_getThemeInfo($_CONF['theme']);
$themes[0] = COM_getThemeInfo($_CONF['theme']);
} else {
$themes[$index] = $_CONF['theme'];
}
Expand Down

0 comments on commit e8d0e11

Please sign in to comment.