corcel / acf

Advanced Custom Fields (ACF) plugin for Corcel
127 stars 100 forks source link

Added a hardcast to (int) on a field used in a range #31

Closed jakobbuis closed 7 years ago

jakobbuis commented 7 years ago

My local Wordpress installation sometimes returns a string representation of the integer, or something completely invalid. That triggers a problem om line 80, where an int must be supplied.

I can't reliably reproduce the problem, as it is probably related to database corruption when changing already filled ACF fieldsets. But at the very least this change generates a more meaningful error message.