From: Evan Prodromou Date: Wed, 16 Jul 2008 05:53:26 +0000 (-0400) Subject: bad default for email on command-line systems X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c265587612231dc8b556fd9792821fb03afe9f38;p=quix0rs-gnu-social.git bad default for email on command-line systems darcs-hash:20080716055326-5a68a-368860d9a9dfd071e7855c3d05a24b7004f59912.gz --- diff --git a/lib/common.php b/lib/common.php index d8ef18d907..c0921b662b 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' =>