VaultPress::_fix_ixr_null_to_string PHP Method

_fix_ixr_null_to_string() public method

public _fix_ixr_null_to_string ( &$args )
    function _fix_ixr_null_to_string(&$args)
    {
        if (is_array($args)) {
            foreach ($args as $k => $v) {
                $args[$k] = $this->_fix_ixr_null_to_string($v);
            }
        } else {
            if (is_object($args)) {
                foreach (get_object_vars($args) as $k => $v) {
                    $args->{$k} = $this->_fix_ixr_null_to_string($v);
                }
            } else {
                return null == $args ? '' : $args;
            }
        }
        return $args;
    }
VaultPress