Q2A Market - Support

We are here to provide you support for Q2A Market premium and free products. If you have any issue in installation, option settings or any bug you found. Please create a ticket. We would try to get back to you as soon as possible.

"PHP Notice: Undefined index" in Advance Featured Questions

PHP Notice: Undefined index: part in /qa-include/qa-base.php(510) : eval()'d code on line 189

the file is : qa-featured-questions-layer.php (line 189)

to reproduce it : just install the plugin, you do not need to setup it in the admin plugin section, nor as a widget, nor as a page.

The notice is "fired" when you answer to an existing question (after the submit)

opened on Nov 25 in Advanced Feature Questions

This error was not exists in earlier version. I believe something has changed in latest version. Need to check. Will try to fix soon and get back to you.

I've modified the code (line 189) from :

if(($this->template == 'ask' || $this->context['part'] == 'form_q_edit') && (qa_get_logged_in_level() >= QA_USER_LEVEL_ADMIN || qa_get_logged_in_userid() == in_array(qa_get_logged_in_userid(), $allowed_user) || ((qa_opt('q2am_featured_allow_loggedin')) && qa_is_logged_in())))

to

if(($this->template == 'ask' || @$this->context['part'] == 'form_q_edit') && (qa_get_logged_in_level() >= QA_USER_LEVEL_ADMIN || qa_get_logged_in_userid() == in_array(qa_get_logged_in_userid(), $allowed_user) || ((qa_opt('q2am_featured_allow_loggedin')) && qa_is_logged_in())))

that is I've just "suppressed" ("@") the notice.
Do you think it's ok or do you see any issue ?
Thanks
Maxj

ehm...
UP !

;-) ;-)