Hi,
I was not able to sucessfully run faq_manager.php in admin. Although I am not an expert, I believe there is an error in function tep_set_faq_visible in admin/faq_manager.php arround line 107:
function tep_set_faq_visible($faq_id, $_GET) {
if ($_GET['visible'] == 1) {
return tep_db_query("update faq set visible = '0', date = now() where faq_id = '" . (int)$faq_id . "'");
} else{
return tep_db_query("update faq set visible = '1', date = now() where faq_id = '" . (int)$faq_id . "'");
}
}
I modified the code as follows:
$faq_visible = $_GET['visible'];
function tep_set_faq_visible($faq_id, $faq_visible) {
if ($_GET['visible'] == 1) {
tep_db_query("update faq set visible = '0', date = now() where faq_id = '" . (int)$faq_id . "'");
} else{
tep_db_query("update faq set visible = '1', date = now() where faq_id = '" . (int)$faq_id . "'");
}
}
I am not sure why, but this is working for me :-)