X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=9783539a21b3eca3fbd4c5a72c43d12e33a699b4;hb=3575fe5bcf8910afad5cc82ed68f3d442bab1a88;hp=9e473936ab0ab76cc3d5d23dfb6cffc6c13c2468;hpb=9f3bdf5895d81a6c1e02876fd696efe81235a350;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 9e473936..9783539a 100644 --- a/index.php +++ b/index.php @@ -10,8 +10,6 @@ * - https://github.com/sebsauvage/Shaarli * * Licence: http://www.opensource.org/licenses/zlib-license.php - * - * Requires: PHP 5.5.x */ // Set 'UTC' as the default timezone if it is not defined in php.ini @@ -86,7 +84,7 @@ use \Shaarli\Updater\Updater; // Ensure the PHP version is supported try { - ApplicationUtils::checkPHPVersion('5.5', PHP_VERSION); + ApplicationUtils::checkPHPVersion('7.1', PHP_VERSION); } catch (Exception $exc) { header('Content-Type: text/plain; charset=utf-8'); echo $exc->getMessage(); @@ -465,7 +463,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: