04.07.2016, 08:45
He meant, the cell size of your result array is too small. For example, lets say you created it like; result[20] but the data name contains more than 20 characters.
And, with cache_get_field_content_int, you can directly fetch the integer value without having to use strval. Right now, you are fetching the data as a string and converting them into an integer value.
And, with cache_get_field_content_int, you can directly fetch the integer value without having to use strval. Right now, you are fetching the data as a string and converting them into an integer value.