stop warnings spamming the log

It keeps hitting the log, if $what is a string and not an array -> make it an array then...