1
1
Fork 0

Rename DBA::is_result to DBA::isResult

This commit is contained in:
Hypolite Petovan 2018-07-21 08:46:04 -04:00 committed by Hypolite Petovan
commit ecea7425f8
152 changed files with 765 additions and 765 deletions

View file

@ -27,7 +27,7 @@ function dfrn_notify_post(App $a) {
$nick = defaults($a->argv, 1, '');
$user = DBA::selectFirst('user', [], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]);
if (!DBA::is_result($user)) {
if (!DBA::isResult($user)) {
System::httpExit(500);
}
dfrn_dispatch_private($user, $postdata);
@ -107,7 +107,7 @@ function dfrn_notify_post(App $a) {
dbesc($a->argv[1])
);
if (!DBA::is_result($r)) {
if (!DBA::isResult($r)) {
logger('contact not found for dfrn_id ' . $dfrn_id);
System::xmlExit(3, 'Contact not found');
//NOTREACHED
@ -220,7 +220,7 @@ function dfrn_dispatch_public($postdata)
$importer['importer_uid'] = 0;
// This should never fail
if (!DBA::is_result($importer)) {
if (!DBA::isResult($importer)) {
logger('Contact not found for address ' . $msg['author']);
System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found');
}
@ -257,7 +257,7 @@ function dfrn_dispatch_private($user, $postdata)
$cid);
// This should never fail
if (!DBA::is_result($importer)) {
if (!DBA::isResult($importer)) {
logger('Contact not found for address ' . $msg['author']);
System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found');
}
@ -334,7 +334,7 @@ function dfrn_notify_content(App $a) {
dbesc($a->argv[1])
);
if (!DBA::is_result($r)) {
if (!DBA::isResult($r)) {
logger('No user data found for ' . $a->argv[1] . ' - SQL: ' . $sql_extra);
killme();
}