X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fmood.php;h=e80a7f0976e6550ac60c20e6b48db9fe63856472;hb=53c1bf6ba321970fe7de551044f7951f002b57ec;hp=e98c16108f4e1627fb5073d0703b97dc0df1603b;hpb=4dce3d822470537e40a0f77330d62ac05bf73806;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index e98c16108f..e80a7f0976 100644 --- a/mod/mood.php +++ b/mod/mood.php @@ -5,10 +5,11 @@ require_once('include/bbcode.php'); require_once('include/items.php'); -function mood_init(App &$a) { +function mood_init(App $a) { - if(! local_user()) + if (! local_user()) { return; + } $uid = local_user(); $verb = notags(trim($_GET['verb'])); @@ -59,7 +60,7 @@ function mood_init(App &$a) { $uri = item_new_uri($a->get_hostname(),$uid); - $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); + $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); $arr = array(); $arr['guid'] = get_guid(32); @@ -108,9 +109,9 @@ function mood_init(App &$a) { -function mood_content(App &$a) { +function mood_content(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; }