Rename DBA::is_result to DBA::isResult
This commit is contained in:
committed by
Hypolite Petovan
parent
0ec44f3e8a
commit
ecea7425f8
@@ -20,7 +20,7 @@ function wall_attach_post(App $a) {
|
||||
$r = q("SELECT `user`.*, `contact`.`id` FROM `user` LEFT JOIN `contact` on `user`.`uid` = `contact`.`uid` WHERE `user`.`nickname` = '%s' AND `user`.`blocked` = 0 and `contact`.`self` = 1 LIMIT 1",
|
||||
dbesc($nick)
|
||||
);
|
||||
if (! DBA::is_result($r)) {
|
||||
if (! DBA::isResult($r)) {
|
||||
if ($r_json) {
|
||||
echo json_encode(['error'=>L10n::t('Invalid request.')]);
|
||||
killme();
|
||||
@@ -63,7 +63,7 @@ function wall_attach_post(App $a) {
|
||||
intval($contact_id),
|
||||
intval($page_owner_uid)
|
||||
);
|
||||
if (DBA::is_result($r)) {
|
||||
if (DBA::isResult($r)) {
|
||||
$can_post = true;
|
||||
$visitor = $contact_id;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ function wall_attach_post(App $a) {
|
||||
dbesc($hash)
|
||||
);
|
||||
|
||||
if (! DBA::is_result($r)) {
|
||||
if (! DBA::isResult($r)) {
|
||||
$msg = L10n::t('File upload failed.');
|
||||
if ($r_json) {
|
||||
echo json_encode(['error'=>$msg]);
|
||||
|
||||
Reference in New Issue
Block a user