typos
This commit is contained in:
parent
bde5802a3a
commit
726f54ce9e
@ -108,7 +108,7 @@ abstract class AbstractData
|
||||
if ($namespace === 'traffic_limiter') {
|
||||
foreach ($this->_last_cache as $key => $last_submission) {
|
||||
if ($last_submission <= $time) {
|
||||
unset($thi->_last_cache[$key]);
|
||||
unset($this->_last_cache[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -530,16 +530,9 @@ class Database extends AbstractData
|
||||
*/
|
||||
public function getAllPastes()
|
||||
{
|
||||
$pastes = array();
|
||||
$rows = $this->_select(
|
||||
'SELECT "dataid" FROM "' . $this->_sanitizeIdentifier('paste') . '"',
|
||||
array()
|
||||
);
|
||||
if (is_array($rows) && count($rows)) {
|
||||
foreach ($rows as $row) {
|
||||
$pastes[] = $row['dataid'];
|
||||
}
|
||||
}
|
||||
$pastes = $this->_db->_query(
|
||||
'SELECT "dataid" FROM "' . $this->_sanitizeIdentifier('paste') . '"'
|
||||
)->fetchAll(PDO::FETCH_COLUMN, 0);
|
||||
return $pastes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user