Skip to content

Commit a95cea6

Browse files
Merge pull request #1118 from cloudinary/fix/admin-page-warning
Fix edit asset admin page warning
2 parents f109c10 + 235a4df commit a95cea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function render() {
298298
$page = $this->get_param( 'current_section' );
299299
}
300300

301-
$this->set_param( 'active_slug', $page['slug'] );
301+
$this->set_param( 'active_slug', isset( $page['slug'] ) ? $page['slug'] : '' );
302302
$setting = $this->init_components( $page, $screen->id );
303303
$this->component = $setting->get_component();
304304
$template = $this->section;

0 commit comments

Comments
 (0)