Merge pull request #1346 from kalvn/fixdailynotice

Fixes a Undefined index: thumbnail in daily page.
This commit is contained in:
ArthurHoaro 2019-08-10 12:07:20 +02:00 committed by GitHub
commit edcfe54c45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -465,7 +465,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager, $loginManager)
// Description: 836 characters gives roughly 342 pixel height. // Description: 836 characters gives roughly 342 pixel height.
// This is not perfect, but it's usually OK. // This is not perfect, but it's usually OK.
$length = strlen($link['title']) + (342 * strlen($link['description'])) / 836; $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. $length += 100; // 1 thumbnails roughly takes 100 pixels height.
} }
// Then put in column which is the less filled: // Then put in column which is the less filled: