mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +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
|
@ -556,7 +556,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
// If $cid belongs to a communitity forum or a privat goup,.add a mention to the status editor
|
||||
$condition = ["`id` = ? AND (`forum` OR `prv`)", $cid];
|
||||
$contact = DBA::selectFirst('contact', ['addr', 'nick'], $condition);
|
||||
if (DBA::is_result($contact)) {
|
||||
if (DBA::isResult($contact)) {
|
||||
if ($contact['addr'] != '') {
|
||||
$content = '!' . $contact['addr'];
|
||||
} else {
|
||||
|
@ -609,7 +609,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
|
||||
if ($gid) {
|
||||
$group = DBA::selectFirst('group', ['name'], ['id' => $gid, 'uid' => local_user()]);
|
||||
if (!DBA::is_result($group)) {
|
||||
if (!DBA::isResult($group)) {
|
||||
if ($update) {
|
||||
killme();
|
||||
}
|
||||
|
@ -625,7 +625,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
|
||||
$contact_str = implode(',', $contacts);
|
||||
$self = DBA::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
|
||||
if (DBA::is_result($self)) {
|
||||
if (DBA::isResult($self)) {
|
||||
$contact_str_self = $self['id'];
|
||||
}
|
||||
|
||||
|
@ -645,7 +645,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
'forum', 'prv', 'contact-type', 'addr', 'thumb', 'location'];
|
||||
$condition = ["`id` = ? AND (NOT `blocked` OR `pending`)", $cid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
if (DBA::is_result($contact)) {
|
||||
if (DBA::isResult($contact)) {
|
||||
$sql_extra = " AND " . $sql_table . ".`contact-id` = " . intval($cid);
|
||||
|
||||
$entries[0] = [
|
||||
|
@ -805,7 +805,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
|
||||
// Only show it when unfiltered (no groups, no networks, ...)
|
||||
if (in_array($nets, ['', NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS]) && (strlen($sql_extra . $sql_extra2 . $sql_extra3) == 0)) {
|
||||
if (DBA::is_result($r)) {
|
||||
if (DBA::isResult($r)) {
|
||||
$top_limit = current($r)['order_date'];
|
||||
$bottom_limit = end($r)['order_date'];
|
||||
if (empty($_SESSION['network_last_top_limit']) || ($_SESSION['network_last_top_limit'] < $top_limit)) {
|
||||
|
@ -874,7 +874,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
|
||||
$items = $r;
|
||||
|
||||
if (DBA::is_result($items)) {
|
||||
if (DBA::isResult($items)) {
|
||||
$parents_arr = [];
|
||||
|
||||
foreach ($items as $item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue