Title: PHP Notice When Adding Widget to Sidebar
Last modified: April 4, 2018

---

# PHP Notice When Adding Widget to Sidebar

 *  [model13](https://wordpress.org/support/users/model13/)
 * (@model13)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-notice-when-adding-widget-to-sidebar/)
 * Hi, we’re using Restrict Widgets 1.3.1 on WordPress 4.9.5. During some unrelated
   testing I noticed a PHP notice being logged for the plugin. It appears to happen
   when a widget is first added to a sidebar and saved without setting any widget
   restrictions.
 * PHP Notice: Undefined index: widget_multiselect in [path redacted]/wp-content/
   plugins/restrict-widgets/restrict-widgets.php on line 1273
 * Looks like it just needs an isset() check added to the if statement.
 * Thanks for your work on this plugin. We really appreciate it.

The topic ‘PHP Notice When Adding Widget to Sidebar’ is closed to new replies.

 * ![](https://ps.w.org/restrict-widgets/assets/icon-256x256.png?rev=1018448)
 * [Restrict Widgets](https://wordpress.org/plugins/restrict-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-widgets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [model13](https://wordpress.org/support/users/model13/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-notice-when-adding-widget-to-sidebar/)
 * Status: not a support question