]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes a Undefined index: thumbnail in daily page. 1346/head
authorkalvn <kalvn@pm.me>
Sun, 4 Aug 2019 20:02:18 +0000 (22:02 +0200)
committerkalvn <kalvn@pm.me>
Sun, 4 Aug 2019 20:02:18 +0000 (22:02 +0200)
index.php

index 9e473936ab0ab76cc3d5d23dfb6cffc6c13c2468..48d6927e6d63aad3e940c57f14317f94ef300039 100644 (file)
--- a/index.php
+++ b/index.php
@@ -465,7 +465,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager, $loginManager)
         // Description: 836 characters gives roughly 342 pixel height.
         // This is not perfect, but it's usually OK.
         $length = strlen($link['title']) + (342 * strlen($link['description'])) / 836;
-        if ($link['thumbnail']) {
+        if (! empty($link['thumbnail'])) {
             $length += 100; // 1 thumbnails roughly takes 100 pixels height.
         }
         // Then put in column which is the less filled: