app/Helper/sphinxQL.php
/**
     * Fetch result to array
     *
     * @param bool $single - Fetch one hay fetch all
     * @return array
     */
Fetch result to array
@param bool $single - Fetch one hay fetch all
@return array
Fetch result to array @param bool $single - Fetch one hay fetch all @return array
public function fetch($single = false)
    {
        $result = $this->result;
        if( $this->result instanceof mysqli_result ) {
            $result = $this->convert_result_set_2_array($this->result);
        }
        if( $single ) {
            if( !empty($result) ) {
                return $result[0];
            }
            return array();
        }
        return $result;
    }
public function fetch ( $ single = false ) { $ result = $ this -> result ; if ( $ this -> result instanceof mysqli_result ) { $ result = $ this -> convert_result_set_2_array ( $ this -> result ) ; } if ( $ single ) { if ( ! empty ( $ result ) ) { return $ result [ 0 ] ; } return array ( ) ; } return $ result ; }
Fetch result to array
 @param bool $single - Fetch one hay fetch all
 @return array
Fetch result to array @param bool $single - Fetch one hay fetch all @return array