Skip to content
Snippets Groups Projects
Commit a9a33479 authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

Fixed error deleting survey comment

parent 41118a17
Branches
Tags
No related merge requests found
...@@ -496,7 +496,7 @@ class Opensurveysondage extends CommonObject ...@@ -496,7 +496,7 @@ class Opensurveysondage extends CommonObject
*/ */
public function deleteComment($id_comment) public function deleteComment($id_comment)
{ {
$sql = 'DELETE FROM '.MAIN_DB_PREFIX.'opensurvey_comments WHERE id_comment = '.$id_comment.' AND id_sondage = '.$this->id_sondage; $sql = 'DELETE FROM '.MAIN_DB_PREFIX.'opensurvey_comments WHERE id_comment = '.$id_comment.' AND id_sondage = "'.$this->db->escape($this->id_sondage).'"';
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if (!$resql) { if (!$resql) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment