Title: Little code bug
Last modified: August 5, 2023

---

# Little code bug

 *  Resolved [emilycestmoi](https://wordpress.org/support/users/emilycestmoi/)
 * (@emilycestmoi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/little-code-bug/)
 * This was exposed when a “Drag and Drop Multiple File Upload” field was added 
   to a contact form. Would cause an exception as ‘none’ was being fed into round();
   Changing this to 0 fixed the issue.
 *     ```wp-block-code
       --- cf7a-antispam-flamingo.php	(revision 5970)
       +++ cf7a-antispam-flamingo.php	(working copy)
       @@ -333,7 +333,7 @@
   
        			$b8 = new CF7_AntiSpam_B8();
   
       -			$rating = ! empty( $message ) ? round( $b8->cf7a_b8_classify( $message ), 2 ) : 'none';
       +			$rating = ! empty( $message ) ? round( $b8->cf7a_b8_classify( $message ), 2 ) : 0;
   
        			update_post_meta( $result['flamingo_inbound_id'], '_cf7a_b8_classification', round( $rating, 2 ) );
        		}
       ```
   

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

 *  Plugin Author [Erik](https://wordpress.org/support/users/codekraft/)
 * (@codekraft)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/little-code-bug/#post-16950532)
 * hello [@emilycestmoi](https://wordpress.org/support/users/emilycestmoi/) !
 * Yes you are right, that part is not working correctly and in the next version(
   that i will release in short) I’ll correct it and leave the numeric value only
   in case it exists (otherwise don’t save anything).
 *  Thread Starter [emilycestmoi](https://wordpress.org/support/users/emilycestmoi/)
 * (@emilycestmoi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/little-code-bug/#post-16950773)
 * Sounds good. Thank you for all your work!
 *  Plugin Author [Erik](https://wordpress.org/support/users/codekraft/)
 * (@codekraft)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/little-code-bug/#post-17327112)
 * hi Emily only to say thanks for your contributions, I released the new version
   of the plugin today… If you notice any problems let me know! ciao!

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

The topic ‘Little code bug’ is closed to new replies.

 * ![](https://ps.w.org/cf7-antispam/assets/icon.svg?rev=2536700)
 * [AntiSpam for Contact Form 7](https://wordpress.org/plugins/cf7-antispam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-antispam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-antispam/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-antispam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-antispam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-antispam/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Erik](https://wordpress.org/support/users/codekraft/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/little-code-bug/#post-17327112)
 * Status: resolved