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
parent 0ec44f3e8a
commit ecea7425f8
152 changed files with 765 additions and 765 deletions

View file

@ -30,7 +30,7 @@ function profile_init(App $a)
$which = htmlspecialchars($a->argv[1]);
} else {
$r = q("SELECT `nickname` FROM `user` WHERE `blocked` = 0 AND `account_expired` = 0 AND `account_removed` = 0 AND `verified` = 1 ORDER BY RAND() LIMIT 1");
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
goaway(System::baseUrl() . '/profile/' . $r[0]['nickname']);
} else {
logger('profile error: mod_profile ' . $a->query_string, LOGGER_DEBUG);
@ -154,7 +154,7 @@ function profile_content(App $a, $update = 0)
intval($contact_id),
intval($a->profile['profile_uid'])
);
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
$contact = $r[0];
$remote_contact = true;
}
@ -249,7 +249,7 @@ function profile_content(App $a, $update = 0)
intval($a->profile['profile_uid']), intval(GRAVITY_ACTIVITY)
);
if (!DBA::is_result($r)) {
if (!DBA::isResult($r)) {
return '';
}
} else {
@ -280,7 +280,7 @@ function profile_content(App $a, $update = 0)
intval(PAGE_PRVGROUP)
);
if (!DBA::is_result($r)) {
if (!DBA::isResult($r)) {
$sql_extra3 = sprintf(" AND `thread`.`contact-id` = %d ", intval(intval($a->profile['contact_id'])));
} else {
$sql_extra3 = "";
@ -327,7 +327,7 @@ function profile_content(App $a, $update = 0)
// search for new items (update routine)
$_SESSION['last_updated'][$last_updated_key] = time();
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
foreach ($r as $rr) {
$parents_arr[] = $rr['item_id'];
}