From 9eb12222b391cc28e8084713f01bdbd6069488e9 Mon Sep 17 00:00:00 2001 From: Norbert Micheel Date: Tue, 16 Aug 2022 13:15:10 +0200 Subject: [PATCH] Fix stats plugin for PHP 8.1, css, release --- CHANGELOG.md | 2 ++ assets/search_it.css | 3 +-- package.yml | 2 +- plugins/autocomplete/package.yml | 2 +- plugins/documentation/package.yml | 2 +- plugins/plaintext/package.yml | 2 +- plugins/stats/package.yml | 2 +- plugins/stats/pages/index.php | 3 ++- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8229f27..ca6dc59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Changelog +## Version 6.9.2 (2022-08-16) +- Fix stats PlugIn for PHP 8.1 ## Version 6.9.1 (2022-07-11) - remove/replace utf8_encode() for PHP 8.2 #341 @staabm diff --git a/assets/search_it.css b/assets/search_it.css index 4de97a6..31f09e9 100644 --- a/assets/search_it.css +++ b/assets/search_it.css @@ -153,8 +153,7 @@ #subdirs_29 { background-image:url(29.png); } #subdirs_30 { background-image:url(30.png); } -#search_it_plaintext_description, -#search_it_stats_description { height: 24px; } +#search_it_plaintext_description { height: 24px; } #search_it_plaintext_description dd { padding-left: 16px; } .movesymbol { font-size: 21px; } #sortable-elements { diff --git a/package.yml b/package.yml index 312348a..c0b1af7 100644 --- a/package.yml +++ b/package.yml @@ -1,5 +1,5 @@ package: search_it -version: '6.9.1' +version: '6.9.2' author: Friends Of REDAXO supportpage: https://github.com/FriendsOfREDAXO/search_it diff --git a/plugins/autocomplete/package.yml b/plugins/autocomplete/package.yml index bf1fea8..8072f9d 100644 --- a/plugins/autocomplete/package.yml +++ b/plugins/autocomplete/package.yml @@ -1,5 +1,5 @@ package: search_it/autocomplete -version: '6.9.1' +version: '6.9.2' author: Manétage title: 'translate:search_it_autocomplete_plugin_title' diff --git a/plugins/documentation/package.yml b/plugins/documentation/package.yml index 732fc5b..d517dd6 100644 --- a/plugins/documentation/package.yml +++ b/plugins/documentation/package.yml @@ -1,5 +1,5 @@ package: search_it/documentation -version: '6.9.1' +version: '6.9.2' author: Friends Of REDAXO title: 'translate:search_it_documentation_title' diff --git a/plugins/plaintext/package.yml b/plugins/plaintext/package.yml index 708a97a..c90e389 100644 --- a/plugins/plaintext/package.yml +++ b/plugins/plaintext/package.yml @@ -1,5 +1,5 @@ package: search_it/plaintext -version: '6.9.1' +version: '6.9.2' author: Friends Of REDAXO title: 'translate:search_it_plaintext_title' diff --git a/plugins/stats/package.yml b/plugins/stats/package.yml index 8cf93ad..ad282d5 100644 --- a/plugins/stats/package.yml +++ b/plugins/stats/package.yml @@ -1,5 +1,5 @@ package: search_it/stats -version: '6.9.1' +version: '6.9.2' author: Friends Of REDAXO title: 'translate:search_it_stats_plugin_title' diff --git a/plugins/stats/pages/index.php b/plugins/stats/pages/index.php index 6ff0f87..892c6b5 100644 --- a/plugins/stats/pages/index.php +++ b/plugins/stats/pages/index.php @@ -87,7 +87,7 @@ $generalstats['075_cachedsearchcount'] = $table['Rows']; } -$generalstats['020_averageresultcount'] = number_format($generalstats['020_averageresultcount'], 2, ',', ''); +$generalstats['020_averageresultcount'] = number_format($generalstats['020_averageresultcount'] ?? 0, 2, ',', ''); $generalstats['100_datalength'] = search_it_stats_bytesize($generalstats['100_datalength']); $generalstats['110_indexlength'] = search_it_stats_bytesize($generalstats['110_indexlength']); @@ -218,6 +218,7 @@ jQuery('
') .css('font-weight', '900') .css('margin-bottom','1em') + .css('padding','0') .append( jQuery('i18n('search_it_settings_show_all'); ?><' + '/a>') .css('cursor', 'pointer')