ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: AaronB on June 24, 2014, 10:03:01 pm

Title: Development Branch - Member Groups
Post by: AaronB on June 24, 2014, 10:03:01 pm
member groups/edit member groups :: clicking on any of the groups produces this error:

Fatal error: Call to a member function action_index() on a non-object in G:\xampp\htdocs\elk_dev\sources\subs\Action.class.php on line 172

Title: Re: Development Branch - Member Groups
Post by: emanuele on June 25, 2014, 04:51:40 pm
I missed that one...

arg... yeah.
Well, let's do another test, in Action.class.php, change:
Code: [Select]
				// an OOP controller, call it over
$subAction['controller']->{$subAction['function']}();
to:
Code: [Select]
				// an OOP controller, call it over
if (is_object($subAction['controller']))
$subAction['controller']->{$subAction['function']}();
else
{
$controller_name = $subAction['controller'];
$controller = new $controller_name();

$controller->{$subAction['function']}();
}
This should cover any situation.
Title: Re: Development Branch - Member Groups
Post by: Spuds on June 25, 2014, 06:48:58 pm
QuoteThis should cover any situation.
Never say any lol :D
Title: Re: Development Branch - Member Groups
Post by: emanuele on June 26, 2014, 02:08:40 am
Me that use an absolute? O_o

Someone hacked my mind for sure, nods