Fixed issue where on localhost mysql/php was returning an intval(1) as a string but on the server it was returning as an int. Now, the value is intval()'ed so type testing isn't an issue.