Fixed a bug where a variable with a wrong type was given to strpos