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
22
mod/item.php
22
mod/item.php
|
@ -101,7 +101,7 @@ function item_post(App $a) {
|
|||
}
|
||||
|
||||
// if this isn't the real parent of the conversation, find it
|
||||
if (DBA::is_result($parent_item)) {
|
||||
if (DBA::isResult($parent_item)) {
|
||||
|
||||
// The URI and the contact is taken from the direct parent which needn't to be the top parent
|
||||
$thr_parent_uri = $parent_item['uri'];
|
||||
|
@ -112,7 +112,7 @@ function item_post(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!DBA::is_result($parent_item)) {
|
||||
if (!DBA::isResult($parent_item)) {
|
||||
notice(L10n::t('Unable to locate original post.') . EOL);
|
||||
if (x($_REQUEST, 'return')) {
|
||||
goaway($return_path);
|
||||
|
@ -175,7 +175,7 @@ function item_post(App $a) {
|
|||
|
||||
$user = DBA::selectFirst('user', [], ['uid' => $profile_uid]);
|
||||
|
||||
if (!DBA::is_result($user) && !$parent) {
|
||||
if (!DBA::isResult($user) && !$parent) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,7 @@ function item_post(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
if (DBA::is_result($author)) {
|
||||
if (DBA::isResult($author)) {
|
||||
$contact_id = $author['id'];
|
||||
}
|
||||
|
||||
|
@ -536,7 +536,7 @@ function item_post(App $a) {
|
|||
foreach ($match[2] as $mtch) {
|
||||
$fields = ['id', 'filename', 'filesize', 'filetype'];
|
||||
$attachment = DBA::selectFirst('attach', $fields, ['id' => $mtch]);
|
||||
if (DBA::is_result($attachment)) {
|
||||
if (DBA::isResult($attachment)) {
|
||||
if (strlen($attachments)) {
|
||||
$attachments .= ',';
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ function item_post(App $a) {
|
|||
$datarray['protocol'] = PROTOCOL_DFRN;
|
||||
|
||||
$conversation = DBA::selectFirst('conversation', ['conversation-uri', 'conversation-href'], ['item-uri' => $datarray['parent-uri']]);
|
||||
if (DBA::is_result($conversation)) {
|
||||
if (DBA::isResult($conversation)) {
|
||||
if ($conversation['conversation-uri'] != '') {
|
||||
$datarray['conversation-uri'] = $conversation['conversation-uri'];
|
||||
}
|
||||
|
@ -732,7 +732,7 @@ function item_post(App $a) {
|
|||
|
||||
$datarray = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $post_id]);
|
||||
|
||||
if (!DBA::is_result($datarray)) {
|
||||
if (!DBA::isResult($datarray)) {
|
||||
logger("Item with id ".$post_id." couldn't be fetched.");
|
||||
goaway($return_path);
|
||||
}
|
||||
|
@ -963,26 +963,26 @@ function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $n
|
|||
}
|
||||
|
||||
// select someone by nick or attag in the current network
|
||||
if (!DBA::is_result($contact) && ($network != "")) {
|
||||
if (!DBA::isResult($contact) && ($network != "")) {
|
||||
$condition = ["(`nick` = ? OR `attag` = ?) AND `network` = ? AND `uid` = ?",
|
||||
$name, $name, $network, $profile_uid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
}
|
||||
|
||||
//select someone by name in the current network
|
||||
if (!DBA::is_result($contact) && ($network != "")) {
|
||||
if (!DBA::isResult($contact) && ($network != "")) {
|
||||
$condition = ['name' => $name, 'network' => $network, 'uid' => $profile_uid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
}
|
||||
|
||||
// select someone by nick or attag in any network
|
||||
if (!DBA::is_result($contact)) {
|
||||
if (!DBA::isResult($contact)) {
|
||||
$condition = ["(`nick` = ? OR `attag` = ?) AND `uid` = ?", $name, $name, $profile_uid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
}
|
||||
|
||||
// select someone by name in any network
|
||||
if (!DBA::is_result($contact)) {
|
||||
if (!DBA::isResult($contact)) {
|
||||
$condition = ['name' => $name, 'uid' => $profile_uid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue