diff --git a/include/staff/login.tpl.php b/include/staff/login.tpl.php
index 4a1d2f7272a520d65e3f2a56b59d1a86080f68cc..c0cbbb5b7d72248706fde58ab1a627f8cab53e44 100644
--- a/include/staff/login.tpl.php
+++ b/include/staff/login.tpl.php
@@ -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">