Willy Mesnage

Results 5 comments of Willy Mesnage

Hi guys, I never update this code but, if this line nullify empty values, try to put (int) 0 in your data. If a value is needed, an empty value...

Are you sure 0 is passed in the trim ? I ask it because trim(0) returns 0 so I don't really understand. Another fix could be to send "0" instead...

Ok, I see. You can try to check if (!trim($value) && !is_numeric($value)). If it works pls PR it ;)

But in this case, a 0 will be cast in "0", and it will result as an SQL error, no ?

So it's what I said previously @danslo. Replace 0 by "0" works, and we shouldn't update the code, no ?