Welcome Guest, Not a member yet? Register   Sign In
Bug in Active Record
#2

[eluser]xwero[/eluser]
I don't think it's a bug, it's a convention to separate the 'weird' fieldnames from the operator.
Code:
function _has_operator($str)
    {
        $str = trim($str);
        if ( ! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))
        {
            return FALSE;
        }

        return TRUE;
    }


Messages In This Thread
Bug in Active Record - by El Forum - 03-12-2009, 09:52 AM
Bug in Active Record - by El Forum - 03-12-2009, 10:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB