Use the defined $TABLE variable

This commit is contained in:
Jason Y. Lee 2015-08-13 09:41:12 -07:00 committed by Jason Y. Lee
parent 491f2e71bc
commit 998904e589

View File

@ -463,7 +463,7 @@ class Pastes extends CI_Model
$search = '%' . $search . '%'; $search = '%' . $search . '%';
// count total results // count total results
$sql = "SELECT id FROM ${this->config->item("db_prefix")}pastes WHERE private = 0 AND (title LIKE ? OR raw LIKE ?)"; $sql = "SELECT id FROM $TABLE WHERE private = 0 AND (title LIKE ? OR raw LIKE ?)";
$query = $this->db->query($sql, array( $query = $this->db->query($sql, array(
$search, $search,
$search, $search,