X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoke.php;h=83f3bf1c735894fcfd37b058f45975387ad55e09;hb=5d7e1e1a1544421c594e13efb9c1ebece241e94f;hp=ea0093e1dc9162b9a17ebf5fa8bf318bef619c26;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/poke.php b/mod/poke.php index ea0093e1dc..83f3bf1c73 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -1,7 +1,6 @@ -' . "\n"; $item_id = item_store($arr); - if ($item_id) { + if($item_id) { //q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d", // dbesc(App::get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id), // intval($uid), @@ -158,7 +159,7 @@ function poke_content(App $a) { $name = ''; $id = ''; - if (intval($_GET['c'])) { + if(intval($_GET['c'])) { $r = q("SELECT `id`,`name` FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($_GET['c']), intval(local_user()) @@ -185,11 +186,9 @@ function poke_content(App $a) { $verbs = get_poke_verbs(); $shortlist = array(); - foreach ($verbs as $k => $v) { - if ($v[1] !== 'NOTRANSLATION') { + foreach($verbs as $k => $v) + if($v[1] !== 'NOTRANSLATION') $shortlist[] = array($k,$v[1]); - } - } $tpl = get_markup_template('poke_content.tpl');