ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: badmonkey on August 14, 2017, 09:42:12 pm

Title: Configuring theme member options
Post by: badmonkey on August 14, 2017, 09:42:12 pm
1.1 RC1, php7.  When configuring theme member options there is an error.  Specifically when trying to enable Quick Reply for all members produces the error "Invalid argument supplied for foreach()". 

Any help is appreciate as always.  Hope everyone is well!   8)
Title: Re: Configuring theme member options
Post by: Spuds on August 15, 2017, 09:33:13 am
In sources/admin ... open the file ManageThemes.controller.php

find this block (around line 458)
Code: (find) [Select]
			if (empty($this->_req->post->options))
$this->_options = array();

if (empty($this->_req->post->default_options))
$this->_default_options = array();

replace the above with
Code: (replace) [Select]
			$this->_options = $this->_req->getPost('options', '', array());
$this->_default_options = $this->_req->getPost('default_options', '', array());
Title: Re: Configuring theme member options
Post by: badmonkey on August 15, 2017, 09:36:34 am
Thanks Spuds!   ;)