Skip to content
Snippets Groups Projects
Commit f32bd57e authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix possible crash if no content for login banner

parent 8c1fbc3f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ $info = ($_POST && $errors)?Format::htmlchars($_POST):array();
<div id="loginBox">
<h1 id="logo"><a href="index.php">osTicket Staff Control Panel</a></h1>
<h3><?php echo Format::htmlchars($msg); ?></h3>
<div><?php echo Format::viewableImages($content->getBody()); ?></div>
<div><small><?php echo ($content) ? Format::viewableImages($content->getBody()) : ''; ?></small></div>
<form action="login.php" method="post">
<?php csrf_token(); ?>
<input type="hidden" name="do" value="scplogin">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment