X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=957e25f543bc102f3fe50be0aa888dff84911fb6;hb=a7ce601580b07e9b3e7653cbdb0a9b6bbb5c474e;hp=80fc1c6e796e71c11940e7e3f3f10f40e529f7f6;hpb=52f12ee28db97b29ce0f10c8ecf76144b80d4216;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 80fc1c6e79..957e25f543 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -3,7 +3,7 @@ require_once('include/attach.php'); require_once('include/datetime.php'); -function wall_attach_post(&$a) { +function wall_attach_post(App $a) { $r_json = (x($_GET,'response') && $_GET['response']=='json'); @@ -12,7 +12,7 @@ function wall_attach_post(&$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(! dbm::is_result($r)){ + if (! dbm::is_result($r)) { if ($r_json) { echo json_encode(array('error'=>t('Invalid request.'))); killme(); @@ -168,7 +168,7 @@ function wall_attach_post(&$a) { dbesc($hash) ); - if(! dbm::is_result($r)) { + if (! dbm::is_result($r)) { $msg = t('File upload failed.'); if ($r_json) { echo json_encode(array('error'=>$msg));