mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Merge pull request #290 from allyunion/master
Use the defined $TABLE variable
This commit is contained in:
commit
0714e54b56
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user