Skip to content

Commit

Permalink
Fix var unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 6, 2017
1 parent 43d85af commit c7a0f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/comment.class.php
Expand Up @@ -298,7 +298,7 @@ public static function fetchAllFor($element_type, $fk_element)
$sql.= " c.rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."comment as c";
$sql.= " WHERE c.fk_element = ".$fk_element;
$sql.= " AND c.element_type = '".$this->db->escape($element_type)."'";
$sql.= " AND c.element_type = '".$db->escape($element_type)."'";
$sql.= " AND c.entity = ".$conf->entity;
$sql.= " ORDER BY c.tms DESC";

Expand Down

0 comments on commit c7a0f46

Please sign in to comment.