Title: Notice: Undefined variable &gt; GitHub?
Last modified: July 12, 2020

---

# Notice: Undefined variable > GitHub?

 *  Resolved [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/notice-undefined-variable-github/)
 * After activating the plugin, a _lot_ of undefined variable notices are being 
   thrown:
    `Notice: Undefined variable: layout_arr in .../class-smoobu-calendar.
   php on line 96` Fix: define the array:
 *     ```
       private function set_layout( $layout ) {
       	// form an array of measures.
       	$layout_arr = array();
       ```
   
 * Next:
    `Notice: Undefined index: general_bg in .../styling.php on line 110` Fix:
   check if the key exists before echoing it:
 *     ```
       if( ! empty( $default_settings[ $key ] ) ){
          echo esc_attr( $default_settings[ $key ] );
       }
       ```
   
 * Is there a GitHub repo that can be forked, fix and a pull request submitted?
    -  This topic was modified 5 years, 11 months ago by [twinpictures](https://wordpress.org/support/users/twinpictures/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Mindaugas Jakubauskas](https://wordpress.org/support/users/meevly/)
 * (@meevly)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-github/#post-13125674)
 * Hi [@twinpictures](https://wordpress.org/support/users/twinpictures/)
 * We are really sorry about the issue. We are going to fix **all** undefined variables(
   those you have mentioned and those you have not) this week, as soon as possible.
   I will update this thread when it happens.
 * At the moment there is no public GitHub repository for this plugin but we will
   update plugin description once we have it!
    -  This reply was modified 5 years, 10 months ago by [Mindaugas Jakubauskas](https://wordpress.org/support/users/meevly/).
    -  This reply was modified 5 years, 10 months ago by [Mindaugas Jakubauskas](https://wordpress.org/support/users/meevly/).
 *  Thread Starter [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-github/#post-13125820)
 * Hey Great!
 * Yeah, if you open a GitHub repo, I would be happy to fork it and share back any
   new features I am thinking of adding.
    But I do like the plugin more than the
   iframe availability calendar from Smoobu direkt.
 * Make it a great day.
 *  Plugin Contributor [Mindaugas Jakubauskas](https://wordpress.org/support/users/meevly/)
 * (@meevly)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-github/#post-13129816)
 * Hey [@twinpictures](https://wordpress.org/support/users/twinpictures/) once again,
 * We have fixed undefined indexes and variables notices all over the plugin. Please
   inform us if you still encounter any of them. And thanks once again for letting
   us know!
 * Got it, I will inform you once the repository is set 🙂
 * Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Notice: Undefined variable > GitHub?’ is closed to new replies.

 * ![](https://ps.w.org/bookingflow-smoobu-for-wp/assets/icon-256x256.png?rev=2324925)
 * [bookingflow Smoobu for WP](https://wordpress.org/plugins/bookingflow-smoobu-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bookingflow-smoobu-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bookingflow-smoobu-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/bookingflow-smoobu-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bookingflow-smoobu-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bookingflow-smoobu-for-wp/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mindaugas Jakubauskas](https://wordpress.org/support/users/meevly/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-github/#post-13129816)
 * Status: resolved