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