simplify
authorMichael Wallner <mike@php.net>
Fri, 20 Dec 2013 15:15:04 +0000 (16:15 +0100)
committerMichael Wallner <mike@php.net>
Fri, 20 Dec 2013 15:15:04 +0000 (16:15 +0100)
views/layout.phtml

index 43463ca9f7a5c61328870298921972cceeb76395..3bd409c8dff46595a13aba2a4dc2fdef9ac295ba 100644 (file)
@@ -3,11 +3,10 @@
        <head>
                <meta charset="utf-8">
                <title>
-                       <?php if ($title) : ?>
-                               <?= $title ?> - mdref
-                       <?php else: ?>
-                               mdref
+                       <?php if (!empty($title)) : ?>
+                               <?= $title ?> -
                        <?php endif; ?>
+                               mdref
                </title>
                <base href="<?= $baseUrl ?>">
                <link rel="stylesheet" href="index.css">