From: Brion Vibber Date: Wed, 9 Feb 2011 08:09:25 +0000 (-0800) Subject: Further tweak for ssl paths in plugin check (sslserver may be set but empty) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc5daa237e8d691ca9be85da3ab883b00cee74e1;p=quix0rs-gnu-social.git Further tweak for ssl paths in plugin check (sslserver may be set but empty) --- diff --git a/lib/plugin.php b/lib/plugin.php index 2b34834577..115bb10e01 100644 --- a/lib/plugin.php +++ b/lib/plugin.php @@ -143,18 +143,18 @@ class Plugin $server = common_config('plugins', 'server'); } - if (is_null($server)) { + if (empty($server)) { if ($isHTTPS) { $server = common_config('site', 'sslserver'); } - if (is_null($server)) { + if (empty($server)) { $server = common_config('site', 'server'); } } $path = common_config('plugins', 'path'); - if (is_null($path)) { + if (empty($path)) { $path = common_config('site', 'path') . '/plugins/'; }