From c265587612231dc8b556fd9792821fb03afe9f38 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 16 Jul 2008 01:53:26 -0400 Subject: [PATCH] bad default for email on command-line systems darcs-hash:20080716055326-5a68a-368860d9a9dfd071e7855c3d05a24b7004f59912.gz --- lib/common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' => -- 2.39.5