mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Use the defined $TABLE variable
This commit is contained in:
parent
491f2e71bc
commit
998904e589
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user