mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[pageheader] Avoid notice
This commit is contained in:
parent
f91b114ba7
commit
979f12e51e
2 changed files with 8 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
* Hauke Altmann <https://snarl.de/profile/tugelblend>
|
||||
*
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -66,8 +66,10 @@ function pageheader_addon_settings_post(&$a,&$b) {
|
|||
if(! is_site_admin())
|
||||
return;
|
||||
|
||||
if($_POST['pageheader-submit']) {
|
||||
Config::set('pageheader','text',trim(strip_tags($_POST['pageheader-words'])));
|
||||
if(!empty($_POST['pageheader-submit'])) {
|
||||
if (isset($_POST['pageheader-words'])) {
|
||||
Config::set('pageheader', 'text', trim(strip_tags($_POST['pageheader-words'])));
|
||||
}
|
||||
info(L10n::t('pageheader Settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue