diff options
author | aguy tech <aguytech@free.fr> | 2020-03-01 12:51:45 +0100 |
---|---|---|
committer | aguy tech <aguytech@free.fr> | 2020-03-01 12:51:45 +0100 |
commit | 2458791e4e1c3b2c20913cb4b38ec34385fb336e (patch) | |
tree | f58a23d7062079ac53b4252ae58a05e2bbbaa1ff | |
parent | daba3f287190ab58bde1db5eaaa09da42c8d5c57 (diff) | |
download | Shaarli-2458791e4e1c3b2c20913cb4b38ec34385fb336e.tar.gz Shaarli-2458791e4e1c3b2c20913cb4b38ec34385fb336e.tar.zst Shaarli-2458791e4e1c3b2c20913cb4b38ec34385fb336e.zip |
Remove an error come from parsing of showDaily() when thumbnail option is desactivated
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -465,7 +465,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager, $loginManager) | |||
465 | // Description: 836 characters gives roughly 342 pixel height. | 465 | // Description: 836 characters gives roughly 342 pixel height. |
466 | // This is not perfect, but it's usually OK. | 466 | // This is not perfect, but it's usually OK. |
467 | $length = strlen($link['title']) + (342 * strlen($link['description'])) / 836; | 467 | $length = strlen($link['title']) + (342 * strlen($link['description'])) / 836; |
468 | if ($link['thumbnail']) { | 468 | if (!empty($link['thumbnail'])) { |
469 | $length += 100; // 1 thumbnails roughly takes 100 pixels height. | 469 | $length += 100; // 1 thumbnails roughly takes 100 pixels height. |
470 | } | 470 | } |
471 | // Then put in column which is the less filled: | 471 | // Then put in column which is the less filled: |