X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fscheme.php;h=ddce673105e473320879d57b2ae066746f0753e5;hb=838c0f96de57717e21e985cd2f92a130f568052d;hp=538839b2c256f8623b3b66a80c7acaa0816082aa;hpb=c598bf7d8f5075526fadcfd329f6dd448533dfad;p=friendica.git diff --git a/view/theme/frio/php/scheme.php b/view/theme/frio/php/scheme.php index 538839b2c2..ddce673105 100644 --- a/view/theme/frio/php/scheme.php +++ b/view/theme/frio/php/scheme.php @@ -19,8 +19,6 @@ */ use Friendica\Core\PConfig; -require_once 'boot.php'; - function get_scheme_info($scheme) { $theme = get_app()->getCurrentTheme(); @@ -46,7 +44,11 @@ function get_scheme_info($scheme) foreach ($ll as $l) { $l = trim($l, "\t\n\r */"); if ($l != '') { - list($k, $v) = array_map('trim', explode(':', $l, 2)); + $values = array_map('trim', explode(':', $l, 2)); + if (count($values) < 2) { + continue; + } + list($k, $v) = $values; $k = strtolower($k); if ($k == 'author') { $r = preg_match('|([^<]+)<([^>]+)>|', $v, $m);