joomla / joomla-framework

[READ-ONLY] This repo is no longer in active development. Please see https://github.com/joomla-framework for the individual Framework packages.
http://framework.joomla.org
GNU General Public License v2.0
189 stars 140 forks source link

Missed line in coverting $options to array from Registry class #362

Closed dfritsch closed 10 years ago

dfritsch commented 10 years ago

Getting the following error when making an Oauth2 call using Facebook:

Fatal error: Call to a member function get() on a non-object in ... Joomla/Http/Transport/Stream.php on line 126

The line seems to be a place where $options was not switched to using an array from the old Registry method:

$options['follow_location'] = (int) $this->options->get('follow_location', 1);

Pull request coming in a bit.

mbabker commented 10 years ago

This is actually fixed already in the current HTTP package code at https://github.com/joomla-framework/http (see https://github.com/joomla-framework/http/blob/master/src/Transport/Stream.php#L126).