mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Code optimization and cleaning
This commit is contained in:
@@ -82,7 +82,7 @@ if (isset($_POST['faq_submit']))
|
||||
{
|
||||
$faq_question = $tp->toDB($_POST['faq_question']);
|
||||
$data = $tp->toDB($_POST['data']);
|
||||
$count = ($sql->db_Count("faqs", "(*)", "WHERE faq_parent='".intval($_POST['faq_parent'])."' ") + 1);
|
||||
$count = ($sql->count("faqs", "(*)", "WHERE faq_parent='".intval($_POST['faq_parent'])."' ") + 1);
|
||||
|
||||
$sql->insert("faqs", " 0, '".$_POST['faq_parent']."', '$faq_question', '$data', '".filter_var($_POST['faq_comment'], FILTER_SANITIZE_STRING)."', '".time()."', '".USERID."', '".$count."' ");
|
||||
|
||||
|
Reference in New Issue
Block a user