From: aguy tech Date: Sun, 1 Mar 2020 11:51:45 +0000 (+0100) Subject: Remove an error come from parsing of showDaily() when thumbnail option is desactivated X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F1426%2Fhead;p=github%2Fshaarli%2FShaarli.git Remove an error come from parsing of showDaily() when thumbnail option is desactivated --- diff --git a/index.php b/index.php index 9e473936..6ec5507e 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: