Replace dba::select(limit => 1) by dba::selectOne()

This commit is contained in:
Hypolite Petovan 2018-01-09 22:27:30 -05:00
parent 4b05d70b94
commit ca6e477701
10 changed files with 10 additions and 10 deletions

View file

@ -250,7 +250,7 @@ function buffer_send(App $a, &$b)
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
$self = dba::select('contact', array('id'), array('uid' => $b['uid'], 'self' => true), array('limit' => 1));
$self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}