diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php
index 451ca1ead..a5ba5d332 100644
--- a/e107_admin/newspost.php
+++ b/e107_admin/newspost.php
@@ -1467,11 +1467,12 @@ class news_form_ui extends e_admin_form_ui
if(!getperms('0') && !check_class($pref['news_editauthor']))
{
+
$auth = ($curVal) ? intval($curVal) : USERID;
$sql->select("user", "user_name", "user_id={$auth} LIMIT 1");
$row = $sql->fetch();
$text .= "";
- $text .= "".$row['user_name'])."";
+ $text .= "".$row['user_name']."";
}
else // allow master admin to
{
@@ -1683,6 +1684,7 @@ require_once(e_ADMIN."auth.php");
e107::getAdminUI()->runPage();
+
if(!e_AJAX_REQUEST)
{
require_once("footer.php");
diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php
index 2edd03788..65315aff9 100644
--- a/e107_handlers/form_handler.php
+++ b/e107_handlers/form_handler.php
@@ -2327,7 +2327,7 @@ class e_form
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
}
- if(deftrue('e_DEBUG') && e_ADMIN_AREA === true)
+ if(e_ADMIN_AREA === true)
{
$options['switch'] = 'small';