Title: Remove comment in for statement
Last modified: October 9, 2024

---

# Remove comment in for statement

 *  Resolved [Paul](https://wordpress.org/support/users/headwall/)
 * (@headwall)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-comment-in-for-statement/)
 * Hi
 * In “**includes/_toolbar_ui/ui__settings_panel.php**” on line **1621** you’ve 
   got some array elements commented-out of your foreach() statement:
 *     ```wp-block-code
       foreach ( array("all","new","pending","approved"/*,"booking_today"*/ /*,"was_made_today"*/) as $card_name ) {   ...}
       ```
   
 * This is a common obfuscation technique used by PHP malware, so your file is causing
   a false positive (for malware) on our hosting platform.
 * **Request**: Could you please remove the comments from the foreach() statement,
   either by assigning the array to a variable just before foreach(), or by removing
   the comment array elements completely?
 * Thanks
 * Paul

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

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-comment-in-for-statement/#post-18062721)
 * Hello Paul.
 * Thank you for notification about this issue.
 * It will be resolved in next update 10.6.2 of Booking Calendar. We will release
   it at this week.
 * Kind Regards.
 *  Thread Starter [Paul](https://wordpress.org/support/users/headwall/)
 * (@headwall)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-comment-in-for-statement/#post-18063019)
 * Thanks for updating the code and confirming. Appreciated. Have a great day.

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

The topic ‘Remove comment in for statement’ is closed to new replies.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paul](https://wordpress.org/support/users/headwall/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/remove-comment-in-for-statement/#post-18063019)
 * Status: resolved