Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Commit

Permalink
Changed references to the 'matrix_row_id' string to use the variable …
Browse files Browse the repository at this point in the history
…instead.
  • Loading branch information
angrybrad committed Jan 18, 2011
1 parent e5b0d3e commit a410a9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext.matrix_comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ function disable_extension()
*/
function comment_entries_query()
{
$row_id = $this->EE->TMPL->fetch_param('matrix_row_id');
$row_id = $this->EE->TMPL->fetch_param($this->column_name);

if ($row_id)
{
if ($row_id == 'IS_EMPTY')
{
$this->EE->db->where('`matrix_row_id` IS NULL', NULL, FALSE);
$this->EE->db->where('`'.$this->column_name.'', NULL, FALSE);
}
else
{
$this->EE->db->where('matrix_row_id', $row_id);
$this->EE->db->where($this->column_name, $row_id);
}
}
}
Expand All @@ -155,4 +155,4 @@ function insert_comment_insert_array($data)
return $data;
}

}
}

0 comments on commit a410a9d

Please sign in to comment.