mirror of
https://github.com/friendica/friendica
synced 2025-04-30 19:44:24 +02:00
Rename DBA::is_result to DBA::isResult
This commit is contained in:
parent
0ec44f3e8a
commit
ecea7425f8
152 changed files with 765 additions and 765 deletions
|
@ -39,14 +39,14 @@ class Delivery extends BaseObject
|
|||
|
||||
if ($cmd == self::MAIL) {
|
||||
$target_item = DBA::selectFirst('mail', [], ['id' => $item_id]);
|
||||
if (!DBA::is_result($target_item)) {
|
||||
if (!DBA::isResult($target_item)) {
|
||||
return;
|
||||
}
|
||||
$uid = $target_item['uid'];
|
||||
$items = [];
|
||||
} elseif ($cmd == self::SUGGESTION) {
|
||||
$target_item = DBA::selectFirst('fsuggest', [], ['id' => $item_id]);
|
||||
if (!DBA::is_result($target_item)) {
|
||||
if (!DBA::isResult($target_item)) {
|
||||
return;
|
||||
}
|
||||
$uid = $target_item['uid'];
|
||||
|
@ -54,7 +54,7 @@ class Delivery extends BaseObject
|
|||
$uid = $item_id;
|
||||
} else {
|
||||
$item = Item::selectFirst(['parent'], ['id' => $item_id]);
|
||||
if (!DBA::is_result($item) || empty($item['parent'])) {
|
||||
if (!DBA::isResult($item) || empty($item['parent'])) {
|
||||
return;
|
||||
}
|
||||
$parent_id = intval($item['parent']);
|
||||
|
@ -132,7 +132,7 @@ class Delivery extends BaseObject
|
|||
}
|
||||
|
||||
$owner = User::getOwnerDataById($uid);
|
||||
if (!DBA::is_result($owner)) {
|
||||
if (!DBA::isResult($owner)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ class Delivery extends BaseObject
|
|||
$contact = DBA::selectFirst('contact', [],
|
||||
['id' => $contact_id, 'blocked' => false, 'pending' => false, 'self' => false]
|
||||
);
|
||||
if (!DBA::is_result($contact)) {
|
||||
if (!DBA::isResult($contact)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ class Delivery extends BaseObject
|
|||
if (link_compare($basepath, System::baseUrl())) {
|
||||
$condition = ['nurl' => normalise_link($contact['url']), 'self' => true];
|
||||
$target_self = DBA::selectFirst('contact', ['uid'], $condition);
|
||||
if (!DBA::is_result($target_self)) {
|
||||
if (!DBA::isResult($target_self)) {
|
||||
return;
|
||||
}
|
||||
$target_uid = $target_self['uid'];
|
||||
|
@ -259,7 +259,7 @@ class Delivery extends BaseObject
|
|||
$cid);
|
||||
|
||||
// This should never fail
|
||||
if (!DBA::is_result($target_importer)) {
|
||||
if (!DBA::isResult($target_importer)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -404,7 +404,7 @@ class Delivery extends BaseObject
|
|||
}
|
||||
|
||||
$local_user = DBA::selectFirst('user', [], ['uid' => $owner['uid']]);
|
||||
if (!DBA::is_result($local_user)) {
|
||||
if (!DBA::isResult($local_user)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,7 @@ class Delivery extends BaseObject
|
|||
|
||||
$reply_to = '';
|
||||
$mailacct = DBA::selectFirst('mailacct', ['reply_to'], ['uid' => $owner['uid']]);
|
||||
if (DBA::is_result($mailacct) && !empty($mailacct['reply_to'])) {
|
||||
if (DBA::isResult($mailacct) && !empty($mailacct['reply_to'])) {
|
||||
$reply_to = $mailacct['reply_to'];
|
||||
}
|
||||
|
||||
|
@ -445,12 +445,12 @@ class Delivery extends BaseObject
|
|||
if (empty($target_item['title'])) {
|
||||
$condition = ['uri' => $target_item['parent-uri'], 'uid' => $owner['uid']];
|
||||
$title = Item::selectFirst(['title'], $condition);
|
||||
if (DBA::is_result($title) && ($title['title'] != '')) {
|
||||
if (DBA::isResult($title) && ($title['title'] != '')) {
|
||||
$subject = $title['title'];
|
||||
} else {
|
||||
$condition = ['parent-uri' => $target_item['parent-uri'], 'uid' => $owner['uid']];
|
||||
$title = Item::selectFirst(['title'], $condition);
|
||||
if (DBA::is_result($title) && ($title['title'] != '')) {
|
||||
if (DBA::isResult($title) && ($title['title'] != '')) {
|
||||
$subject = $title['title'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue