]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bad default for email on command-line systems
authorEvan Prodromou <evan@boursin.controlezvous.ca>
Wed, 16 Jul 2008 05:53:26 +0000 (01:53 -0400)
committerEvan Prodromou <evan@boursin.controlezvous.ca>
Wed, 16 Jul 2008 05:53:26 +0000 (01:53 -0400)
darcs-hash:20080716055326-5a68a-368860d9a9dfd071e7855c3d05a24b7004f59912.gz

lib/common.php

index d8ef18d90796e0da79c9331139d277e6c7a437e9..c0921b662b89bcabb78b2456ac7c6ca92371ca61 100644 (file)
@@ -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' =>