[1.1.5] Cannot edit an existing ban trigger July 03, 2019, 07:19:24 pm This is after applying the fix from my previous bug report about ban triggers. It mentions something about invalid arguments to a foreach().I was attempting to fix an email ban trigger, which was set to just the domain, instead of *@domain
Re: [1.1.5] Cannot edit an existing ban trigger Reply #1 – July 03, 2019, 09:52:56 pm @kode54 If you could edit ManageBans.controller.php (in sources/admin) line 806Code: (current) [Select] $dummy['ban_suggestions'] = array_shift($this->_req->post->ban_suggestions);Code: (new) [Select] $dummy['ban_suggestions'] = (array) array_shift($this->_req->post->ban_suggestions);Just adding that (array) and let me know if that fixes the problem and if you see any other side effects.Thanks
Re: [1.1.5] Cannot edit an existing ban trigger Reply #2 – July 04, 2019, 02:01:09 am Let's keep #3320 open until this is fixed?
Re: [1.1.5] Cannot edit an existing ban trigger Reply #3 – July 04, 2019, 08:53:53 am Agree, I'll add the above fix to the PR, I think that will be all that is needed but will wait for kode54 to confirm.