Skip to content

Commit

Permalink
Merge pull request #2213 from marcosgdf/opensurvey
Browse files Browse the repository at this point in the history
Fixed error deleting survey comment
  • Loading branch information
eldy committed Jan 5, 2015
2 parents 443c9d2 + a9a3347 commit b919318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/opensurvey/class/opensurveysondage.class.php
Expand Up @@ -496,7 +496,7 @@ public function addComment($comment, $comment_user)
*/
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);

if (!$resql) {
Expand Down

0 comments on commit b919318

Please sign in to comment.