Skip to content
Snippets Groups Projects
Commit b919318b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2213 from marcosgdf/opensurvey

Fixed error deleting survey comment
parents 443c9d24 a9a33479
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment