Merge pull request #2213 from marcosgdf/opensurvey

Fixed error deleting survey comment
This commit is contained in:
Laurent Destailleur 2015-01-06 00:21:32 +01:00
commit b919318b53

View File

@ -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) {