Avoid notice in installer

1.9.x
Yannick Warnier 11 years ago
parent 563d83adbb
commit f0a264891f
  1. 3
      main/install/index.php

@ -227,7 +227,10 @@ if (!isset($_GET['running'])) {
$urlForm = api_get_path(WEB_PATH);
$pathForm = api_get_path(SYS_PATH);
$emailForm = 'webmaster@localhost';
if (!empty($_SERVER['SERVER_ADMIN'])) {
$emailForm = $_SERVER['SERVER_ADMIN'];
}
$email_parts = explode('@', $emailForm);
if (isset($email_parts[1]) && $email_parts[1] == 'localhost') {
$emailForm .= '.localdomain';

Loading…
Cancel
Save