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

@@ -34,7 +34,7 @@ function tagger_content(App $a) {
$item = Item::selectFirst([], ['id' => $item_id]);
if (!$item_id || !DBA::is_result($item)) {
if (!$item_id || !DBA::isResult($item)) {
logger('tagger: no item ' . $item_id);
return;
}
@@ -46,7 +46,7 @@ function tagger_content(App $a) {
$r = q("select `nickname`,`blocktags` from user where uid = %d limit 1",
intval($owner_uid)
);
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
$owner_nick = $r[0]['nickname'];
$blocktags = $r[0]['blocktags'];
}
@@ -58,7 +58,7 @@ function tagger_content(App $a) {
$r = q("select * from contact where self = 1 and uid = %d limit 1",
intval(local_user())
);
if (DBA::is_result($r)) {
if (DBA::isResult($r)) {
$contact = $r[0];
} else {
logger('tagger: no contact_id');
@@ -175,7 +175,7 @@ EOT;
// if the original post is on this site, update it.
$original_item = Item::selectFirst(['tag', 'id', 'uid'], ['origin' => true, 'uri' => $item['uri']]);
if (DBA::is_result($original_item)) {
if (DBA::isResult($original_item)) {
$x = q("SELECT `blocktags` FROM `user` WHERE `uid`=%d LIMIT 1",
intval($original_item['uid'])
);
@@ -184,7 +184,7 @@ EOT;
dbesc($term)
);
if (DBA::is_result($x) && !$x[0]['blocktags'] && $t[0]['tcount'] == 0){
if (DBA::isResult($x) && !$x[0]['blocktags'] && $t[0]['tcount'] == 0){
q("INSERT INTO term (`oid`, `otype`, `type`, `term`, `url`, `uid`) VALUE (%d, %d, %d, '%s', '%s', %d)",
intval($original_item['id']),
$term_objtype,