From bb34842b36ded0bbe7e6f51294ad3d20c8d470da Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 9 Dec 2020 10:38:31 +0100 Subject: [PATCH] foto: fix colon separator after empty root title --- foto/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foto/index.php b/foto/index.php index 850d82a..27482a4 100644 --- a/foto/index.php +++ b/foto/index.php @@ -19,7 +19,7 @@ if ($User->admin('foto')) { $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); -$Article->title = implode(' ', $nav) . ': ' . $title; +$Article->title = ($nav ? implode(' ', $nav) . ': ' : '') . $title; $link = ''; print "

"; -- 2.30.0