X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcrepair.php;h=59ac620a374cf1dc4730ef3b1455b3e198ce2182;hb=e5429b2d174a2410a06079f13de24ece013733b9;hp=3abbe343b26d0d09709fe0bcd9f3e47a50ab9757;hpb=0deea97cf296481d792429ae9d4042c66887230d;p=friendica.git diff --git a/mod/crepair.php b/mod/crepair.php index 3abbe343b2..59ac620a37 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -1,10 +1,14 @@ argc > 1) ? intval($a->argv[1]) : 0); @@ -43,8 +47,9 @@ function crepair_post(&$a) { ); } - if(! count($r)) + if (! dbm::is_result($r)) { return; + } $contact = $r[0]; @@ -94,9 +99,9 @@ function crepair_post(&$a) { -function crepair_content(&$a) { +function crepair_content(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; } @@ -110,7 +115,7 @@ function crepair_content(&$a) { ); } - if(! count($r)) { + if (! dbm::is_result($r)) { notice( t('Contact not found.') . EOL); return; }