0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

probable fix for #556 - see if CONF[site_url] is a string before trying to use it

This commit is contained in:
David Goodwin 2021-11-10 09:42:26 +00:00
parent 26706c5dda
commit 540b32f1a0

View File

@ -2392,7 +2392,7 @@ function getRemoteAddr()
*/
function getSiteUrl(array $server = []): string
{
if (Config::has('site_url')) {
if (is_string(Config::read('site_url'))) {
$url = Config::read_string('site_url');
if (!empty($url)) {
return $url;