variable changes for unknown reason(maybe)
<p>i have this function</p>

<pre><code>    function ecr_form_save($data) {
/* data value
array(
['result'] =&gt;
'ok'
)
*/
        $result = validate_form($data);
        global $firephp;    
        $firephp-&gt;log($result, 'Iterators');
        //return $result;   //return 1

        if ($result['result']=="ok") {
            return $result; //return 2
        } else {
            return $result; //return 3
        }

    }
</code></pre>

<p>When i uncoment return 1 everything works, but if i comment return 1 and try to get output from return 2 or 3 i get error</p>

<p>Any idea what is going on with that.</p>

<p>yes ,it is always is returning array like this array('result'=>'ok') or like this array('error'=>'"Beigu rādījums" ir jābūt veselam skaitlim') , depending on what input form has.</p>

<p>if i change if statement to if ( 1==1) it works  to</p>
