Skip to content

Commit

Permalink
AdminerTheme: Fix using undefined constant
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpp committed Apr 2, 2021
1 parent a38c92c commit 627944e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/AdminerTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public function __construct($defaultTheme = "default-orange", array $themes = []
{
define("PMTN_ADMINER_THEME", true);

$this->themeName = isset($_GET["username"]) && isset($themes[SERVER]) ? $themes[SERVER] : $defaultTheme;
$this->themeName = isset($_GET["username"]) && isset($_GET["server"]) && isset($themes[$_GET["server"]])
? $themes[$_GET["server"]]
: $defaultTheme;
}

/**
Expand Down

0 comments on commit 627944e

Please sign in to comment.