Fix: Don't show "Array" string under update notification

This commit is contained in:
onli 2019-08-03 21:11:53 +02:00
parent e27e3e98c7
commit 60e975ee27
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Version 2.3-rc2
------------------------------------------------------------------------
* Fix: Don't show "Array" under Update notification if autoupdate
plugin is not installed
Version 2.3-rc1 (03.08.2019)
------------------------------------------------------------------------

View File

@ -50,7 +50,12 @@ $data['updateCheck'] = $serendipity['updateCheck'];
$data['curVersion'] = serendipity_getCurrentVersion();
$data['update'] = version_compare($data['usedVersion'], $data['curVersion'], '<');
serendipity_plugin_api::hook_event('plugin_dashboard_updater', $output, $data['curVersion']);
$data['updateButton'] = $output;
if (is_array($output)) {
// the autoupdate plugin is not installed and it (and no other plugin) did set $output to html code we could display
$data['updateButton'] = '';
} else {
$data['updateButton'] = $output;
}
$cjoin = ($serendipity['serendipityUserlevel'] == USERLEVEL_EDITOR) ? "
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)