diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-08-10 12:07:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-10 12:07:20 +0200 |
commit | edcfe54c45aedd186cf5092295767d85bf37b780 (patch) | |
tree | 3141a3ea9de7085666c4b853406543d9c0a61c7c /index.php | |
parent | 1a6d61766a80369579041e5a80831f9f6754fe48 (diff) | |
parent | 8ba951640c3480035d15c4143d51b1b0a29f60a9 (diff) | |
download | Shaarli-edcfe54c45aedd186cf5092295767d85bf37b780.tar.gz Shaarli-edcfe54c45aedd186cf5092295767d85bf37b780.tar.zst Shaarli-edcfe54c45aedd186cf5092295767d85bf37b780.zip |
Merge pull request #1346 from kalvn/fixdailynotice
Fixes a Undefined index: thumbnail in daily page.
Diffstat (limited to 'index.php')
-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: |