diff options
author | Evan Prodromou <evan@boursin.controlezvous.ca> | 2008-07-16 01:53:26 -0400 |
---|---|---|
committer | Evan Prodromou <evan@boursin.controlezvous.ca> | 2008-07-16 01:53:26 -0400 |
commit | c265587612231dc8b556fd9792821fb03afe9f38 (patch) | |
tree | db36eec705ee4703161d340abfef01d614db85ea /lib | |
parent | dd96edde7720d470772d1749ab2c3d18fbd2df33 (diff) |
bad default for email on command-line systems
darcs-hash:20080716055326-5a68a-368860d9a9dfd071e7855c3d05a24b7004f59912.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common.php b/lib/common.php index d8ef18d90..c0921b662 100644 --- a/lib/common.php +++ b/lib/common.php @@ -42,7 +42,8 @@ $config = 'path' => '/', 'logfile' => NULL, 'fancy' => false, - 'email' => $_SERVER['SERVER_ADMIN'], + 'email' => + array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : NULL, 'broughtby' => NULL, 'broughtbyurl' => NULL), 'syslog' => |