fix “Undefined index: page”
-
on a fresh install of wordpress, activating this plugin resulted in this warning in wp-admin.
Notice: Undefined index: page in /var/www/vhosts/leadership-development.cuanswers.com/httpdocs/wp-content/plugins/simple-custom-author-profiles/includes/umd_cap_admin.class.php on line 316I added isset() clauses to the code to avoid the notice.
(isset($_GET['page']) && $_GET['page'] != "umd_cap_fields") || (isset($_GET['func']) && $_GET['func'] != 'delete_field') ||Hope this helps!
edit. oh. not enough testing. not sure if my change caused this error “Malformed URL, please go back and try again.” or not. proceed with caution…
The topic ‘fix “Undefined index: page”’ is closed to new replies.