<?php

/**
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package    Fuel
 * @version    1.0
 * @author     Fuel Development Team
 * @license    MIT License
 * @copyright  2010 - 2011 Fuel Development Team
 * @link       http://fuelphp.com
 */

namespace Hybrid;

/**
 * Hybrid 
 * 
 * A set of class that extends the functionality of FuelPHP without 
 * affecting the standard workflow when the application doesn't actually 
 * utilize Hybrid feature.
 * 
 * @package     Fuel
 * @subpackage  Hybrid
 * @category    Uri
 * @author      Mior Muhammad Zaki <crynobone@gmail.com>
 */

class Uri extends \Fuel\Core\Uri 
{
    /**
     * Build query string
     * 
     * @static
     * @access  public
     * @param   mixed   $values
     * @param   string  $start_with     Default string set to ?
     * @return  string 
     */
    public static function build_get_query($values, $start_with = '?') 
    {
        $dataset = array ();
        
        $check_get_input = function($value, & $dataset) 
        {
            $data = Input::get($value);
            
            if (null === $data)
            {
                return false;
            }
            else 
            {
                array_push($dataset, sprintf('%s=%s', $value, $data));
                return;
            }
        };
        
        if (is_array($values))
        {
            foreach ($values as $value)
            {
                $check_get_input($value, $dataset);
            }
        }
        else 
        {
            $check_get_input($values, $dataset);
        }
        
        return $start_with.implode('&', $dataset);
    }
    
}
<?php

/**
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package    Fuel
 * @version    1.0
 * @author     Fuel Development Team
 * @license    MIT License
 * @copyright  2010 - 2011 Fuel Development Team
 * @link       http://fuelphp.com
 */

namespace Hybrid;

/**
 * Hybrid 
 * 
 * A set of class that extends the functionality of FuelPHP without 
 * affecting the standard workflow when the application doesn't actually 
 * utilize Hybrid feature.
 * 
 * @package     Fuel
 * @subpackage  Hybrid
 * @category    Uri
 * @author      Mior Muhammad Zaki <crynobone@gmail.com>
 */

class Uri extends \Fuel\Core\Uri 
{
    /**
     * Build query string
     * 
     * @static
     * @access  public
     * @param   mixed   $data
     * @param   string  $start_with     Default string set to ?
     * @return  string 
     */
    public static function build_get_query($data, $start_with = '?') 
    {
        if (is_string($data))
        {
            $data = array($data);
        }

        if (null === $data or ! is_array($data))
        {
            return '';
        }
        
        return $start_with.http_build_query($data);
    }
    
}
Update Uri::build_get_query to utilize http_build_query()
Update Uri::build_get_query to utilize http_build_query()
