Bugfix: Do not display empty warning msgs box

This commit is contained in:
azett 2022-06-16 12:30:47 +02:00
parent 85f8d2a249
commit 226482d3b6

View File

@ -105,7 +105,9 @@ class admin_plugin_default extends AdminPanelAction {
function main() {
// $conf = io_load_file(CONFIG_DIR . 'plugins.conf.php');
$this->smarty->assign('warnings', $this->errors);
if (!empty($this->errors)) {
$this->smarty->assign('warnings', $this->errors);
}
$this->smarty->assign('enabledlist', $this->fp_plugins);
lang_load('admin.plugin');