Title: Undefined variable: sb
Last modified: August 20, 2016

---

# Undefined variable: sb

 *  [newmat](https://wordpress.org/support/users/newmat/)
 * (@newmat)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-sb/)
 * I get this error when I turn on all warnings for PHP.
    Notice: Undefined variable:
   sb in /wp-content/plugins/custom-sidebars/customsidebars.php on line 98
 *  This line reads:
    if($this->checkAndFixSidebar($sb, $replacement, $replacement_type,
   $extra_index)){
 *  I changed it to:
    if($this->checkAndFixSidebar($sb_name, $replacement, $replacement_type,
   $extra_index)){
 *  Is this correct change? Can this be fixed in the next release?
 * [http://wordpress.org/extend/plugins/custom-sidebars/](http://wordpress.org/extend/plugins/custom-sidebars/)

Viewing 1 replies (of 1 total)

 *  [marquex](https://wordpress.org/support/users/marquex/)
 * (@marquex)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-sb/#post-3510064)
 * Thanks for the info newmat, I will try to add the change to the next version

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: sb’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [marquex](https://wordpress.org/support/users/marquex/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-sb/#post-3510064)
 * Status: not resolved