ElkArte Community

Title: Undefined variable: ban_group_id
Post by: emanuele on February 28, 2016, 02:46:14 pm
Another one found here:
Code: [Select]
Type of error: Undefined
8: Undefined variable: ban_group_id
http://www.elkarte.net/community/index.php?action=admin;area=ban;sa=edit;bg=73
/.../sources/admin/ManageBans.controller.php
Line: 761
Title: Re: Undefined variable: ban_group_id
Post by: Flavio93Zena on February 28, 2016, 02:49:10 pm
Ouch, I didn't think I misbehaved so badly that you wanted to ban me :P At least... Not yet XD
Title: Re: Undefined variable: ban_group_id
Post by: Spuds on March 02, 2016, 08:26:28 am
Has this been tacked on github ?
Title: Re: Undefined variable: ban_group_id
Post by: emanuele on March 02, 2016, 09:41:22 am
/me doesn't remember... :-[

BTW I took the opportunity to finally write an addon to "push" messages as issues to github. O:-)
I'll push the code at github soonish. ;D
Title: Re: Undefined variable: ban_group_id
Post by: Spuds on March 02, 2016, 09:51:27 am
LOL ... I was just thinking about doing the same thing !!!  That awesome sauce !
Title: Re: Undefined variable: ban_group_id
Post by: emanuele on March 02, 2016, 06:05:06 pm
@Spuds
https://github.com/emanuele45/GithubIssues
I did some tests and seems to work, but of course I tested it while developing it... so it may be broken. lol
If you have some spare time feel free to give it a try. ;D

ETA: and of course, if it works, have it installed here should be the first priority! :P
Title: Re: Undefined variable: ban_group_id
Post by: emanuele on March 23, 2016, 03:26:06 pm
And while messing with the addon I forgot to fix the issue. xD

Now at least has a workaround, because honestly I'm not sure how to reproduce it... :(
https://github.com/elkarte/Elkarte/pull/2458/commits/d82ba55c1917ba98fef9ef1834420b1e24b03d7d