From: Mike Cochrane Date: Tue, 22 Jul 2008 08:28:40 +0000 (-0400) Subject: No errors if it's not set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=22c51b27efd04c8fc2c0664d21d7f733c7f36944;p=quix0rs-gnu-social.git No errors if it's not set darcs-hash:20080722082840-533db-6df7b1fe05bbcaef6862d3e9b5ee3bcd277523e7.gz --- diff --git a/lib/util.php b/lib/util.php index ea3ef3b210..9e3bc3d497 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1369,7 +1369,7 @@ function common_negotiate_type($cprefs, $sprefs) { function common_config($main, $sub) { global $config; - return $config[$main][$sub]; + return isset($config[$main][$sub]) ? $config[$main][$sub] : false; } function common_copy_args($from) {