Title: Patch
Last modified: June 11, 2019

---

# Patch

 *  Resolved [Larzans](https://wordpress.org/support/users/larzans/)
 * (@larzans)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/patch-2/)
 * Hi,
    first of all thanks for this great plugin, exactly what we needed.
 * There was just one small bug that prevented us from using it at first, the options
   page display broke when we tried to save the setting (PHP 7.1.25) because the
   print_tree function tried to call itself with an invalid argument that was not
   an array, so we could never use the plugin like that as we couldn’t activate 
   any endpoint.
 * Adding a check for an array in line 241 solved that problem:
 *     ```
       if (is_array($node['branches'])) {
           print_tree($node['branches'], false, $rnodes);
       }
       ```
   
 * Thanks for all the good work,
    Lars

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

 *  Thread Starter [Larzans](https://wordpress.org/support/users/larzans/)
 * (@larzans)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/patch-2/#post-11692062)
 * Any chance that you’ll find the time to fix this?
 * The plugin in its current state is simply not working…
 *  Plugin Author [invisnet](https://wordpress.org/support/users/invisnet/)
 * (@invisnet)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/patch-2/#post-11824449)
 * I finally found an install where I could reproduce the problem, so that’s fixed
   now.

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

The topic ‘Patch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-rest-api-security.svg)
 * [WP REST API Security](https://wordpress.org/plugins/wp-rest-api-security/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-api-security/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-api-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-api-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-api-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [invisnet](https://wordpress.org/support/users/invisnet/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/patch-2/#post-11824449)
 * Status: resolved