mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
be more efficient
This commit is contained in:
parent
f4eed668e7
commit
3028c22c20
|
@ -289,11 +289,11 @@ class Database extends AbstractData
|
|||
{
|
||||
try {
|
||||
$row = $this->_select(
|
||||
'SELECT * FROM "' . $this->_sanitizeIdentifier('paste') .
|
||||
'SELECT "dataid" FROM "' . $this->_sanitizeIdentifier('paste') .
|
||||
'" WHERE "dataid" = ?', array($pasteid), true
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
$row = false;
|
||||
return false;
|
||||
}
|
||||
return (bool) $row;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user