diff --git a/themes/default/template.php b/themes/default/template.php index 3b3f021c72..b69dabdfd4 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -918,21 +918,21 @@ else { } //set the login logo width and height - if (isset($_SESSION['theme']['login_logo_weight']['text'])) { - $login_logo_weight = $_SESSION['theme']['login_logo_weight']['text']; + if (isset($_SESSION['theme']['login_logo_width']['text'])) { + $login_logo_width = $_SESSION['theme']['login_logo_width']['text']; } else { - $login_logo_weight = '300px'; + $login_logo_width = 'auto; max-width: 300px'; } if (isset($_SESSION['theme']['login_logo_height']['text'])) { $login_logo_height = $_SESSION['theme']['login_logo_height']['text']; } else { - $login_logo_height = ''; + $login_logo_height = 'auto; max-height: 300px'; } echo "
\n"; echo "