From: kalvn Date: Sun, 4 Aug 2019 20:02:18 +0000 (+0200) Subject: Fixes a Undefined index: thumbnail in daily page. X-Git-Tag: v0.12.0-beta~49^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8ba951640c3480035d15c4143d51b1b0a29f60a9;hp=1a6d61766a80369579041e5a80831f9f6754fe48;p=github%2Fshaarli%2FShaarli.git Fixes a Undefined index: thumbnail in daily page. --- diff --git a/index.php b/index.php index 9e473936..48d6927e 100644 --- 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: