fix: activate plugin may result in null exception

This commit is contained in:
Emil Zhai 2022-12-03 15:11:27 +00:00
parent b1610eda68
commit b585949d66
No known key found for this signature in database
GPG Key ID: 780B385DB72F1EBD

View File

@ -29,7 +29,7 @@ class Access_Plugin implements Typecho_Plugin_Interface
Typecho_Plugin::factory('Widget_Archive')->beforeRender = array('Access_Plugin', 'backend');
Typecho_Plugin::factory('Widget_Archive')->footer = array('Access_Plugin', 'frontend');
Typecho_Plugin::factory('admin/footer.php')->end = array('Access_Plugin', 'adminFooter');
return _t($msg);
return $msg ? _t($msg) : '';
}
/**