diff --git a/include/staff/templates/sub-navigation.tmpl.php b/include/staff/templates/sub-navigation.tmpl.php
index ebc6fa20440fefaeb9705814ae50c1c74d311817..0cb5e6ed4737ebdfb67e08f80c716b665ddf0d6e 100644
--- a/include/staff/templates/sub-navigation.tmpl.php
+++ b/include/staff/templates/sub-navigation.tmpl.php
@@ -21,5 +21,3 @@ if(($subnav=$nav->getSubMenu()) && is_array($subnav)){
                 $class, $item['href'], $item['title'], $id, $item['desc']);
     }
 }
-?>
-
diff --git a/scp/tickets.php b/scp/tickets.php
index 07ee1ed840cc18a2c28d54ab24d945533dcc24dd..ee3999e62b1e3621b031997129fa671fa22621c3 100644
--- a/scp/tickets.php
+++ b/scp/tickets.php
@@ -635,6 +635,6 @@ if (isset($_SERVER['HTTP_X_PJAX'])) {
 ?>
 <script type="text/javascript">
     $('#sub_nav').html(<?php echo JsonDataEncoder::encode($nav_content); ?>);
-</script><?
+</script><?php
 }
 ?>