// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
$nickname = $a->argv[1];
- $user = dba::selectOne('user', ['uid'], ['nickname' => $nickname]);
+ $user = dba::selectFirst('user', ['uid'], ['nickname' => $nickname]);
if (!DBM::is_result($user)) {
logger('User ' . $nickname . ' not found.', LOGGER_DEBUG);
return;
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}
$user_id = User::authenticate($_SERVER['PHP_AUTH_USER'], trim($_SERVER['PHP_AUTH_PW']));
if ($user_id) {
- $record = dba::selectOne('user', [], ['uid' => $user_id]);
+ $record = dba::selectFirst('user', [], ['uid' => $user_id]);
} else {
logger('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG);
header('WWW-Authenticate: Basic realm="Friendica"');
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
- $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+ $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
if ($b['contact-id'] != $self['id']) {
return;
}