Skip to content

Commit e1b5899

Browse files
author
Michiel Verkoijen
committed
Small fix when the notice is not set.
1 parent 4f50aec commit e1b5899

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/class-tiny-settings.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ public function admin_init() {
6464
);
6565
}
6666

67-
if ( $notice ) {
67+
if ( isset( $notice ) && $notice ) {
6868
$link = sprintf(
6969
'<a href="options-media.php#%s">%s</a>', self::NAME, $notice
7070
);
71-
7271
$this->notices->show( 'setting', $link, $notice_class, false );
7372
}
7473

0 commit comments

Comments
 (0)