require_once("include/text.php");
-function manage_post(&$a) {
+function manage_post(App &$a) {
- if(! local_user())
+ if (! local_user()) {
return;
+ }
$uid = local_user();
$orig_record = $a->user;
);
}
- if(! dbm::is_result($r))
+ if (! dbm::is_result($r)) {
return;
+ }
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
-function manage_content(&$a) {
+function manage_content(App &$a) {
- if(! local_user()) {
+ if (! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}