Welcome Guest, Not a member yet? Register   Sign In
Baffling, sporadic error message - validation issue?
#2

[eluser]xzela[/eluser]
Hi,

the function empty() can be weird sometimes. a string set to "0" is considered empty.

Check out these type comparisons:
http://www.php.net/manual/en/types.comparisons.php

You might be able to get away with this:
Code:
if (!$this->ClientID) { //flip-a-bit,
            echo json_encode(array('error'=>'ClientID is required'));
            return; //exit
        }

This will either solve the issue or completely break your application. Smile


Messages In This Thread
Baffling, sporadic error message - validation issue? - by El Forum - 07-08-2010, 08:12 PM
Baffling, sporadic error message - validation issue? - by El Forum - 07-09-2010, 11:50 AM
Baffling, sporadic error message - validation issue? - by El Forum - 07-15-2010, 05:33 PM
Baffling, sporadic error message - validation issue? - by El Forum - 08-13-2010, 11:47 AM
Baffling, sporadic error message - validation issue? - by El Forum - 08-15-2010, 10:07 AM
Baffling, sporadic error message - validation issue? - by El Forum - 08-15-2010, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB