diff --git a/admin/login.php b/admin/login.php
index 9ae7c17a..392051d0 100644
--- a/admin/login.php
+++ b/admin/login.php
@@ -105,7 +105,7 @@
$template->assign_vars(array(
'ERROR' => (isset($ERR)) ? $ERR : '',
'SITEURL' => $system->SETTINGS['siteurl'],
- 'THEME' => $system->SETTINGS['theme'],
+ 'THEME' => $system->SETTINGS['admin_theme'],
'L_COPY_YEAR' => date("Y"),
'PAGE' => ($db->numrows() == 0) ? 1 : 2
));
diff --git a/includes/class_email_handler.php b/includes/class_email_handler.php
index 3b0b6844..7a1e9cea 100644
--- a/includes/class_email_handler.php
+++ b/includes/class_email_handler.php
@@ -440,10 +440,15 @@ function sendmail()
else
$sent = mail($this->to, $this->subject, $this->message, $this->headers);
}
+ if ($sent)
+ return false;
+ else
+ return true;
break;
}
- if (is_array($this->to)) {
+ if (is_array($this->to))
+ {
for ($i = 0; $i < count($this->to); $i++)
{
try {
@@ -501,7 +506,7 @@ function sendmail()
$this->add_error($e->getMessage());
}
}
- return implode('
',$this->errors);
+ return implode('
', $this->errors);
}
function email_basic($subject, $to, $message, $from = '')