Merge pull request #290 from allyunion/master

Use the defined $TABLE variable
This commit is contained in:
Claude 2015-08-14 08:48:11 +02:00
commit 0714e54b56

View File

@ -463,7 +463,7 @@ class Pastes extends CI_Model
$search = '%' . $search . '%';
// 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(
$search,
$search,