require_once('include/acl_selectors.php');
-function editpost_content(&$a) {
+function editpost_content(App &$a) {
$o = '';
- if(! local_user()) {
+ if (! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
$post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
- if(! $post_id) {
+ if (! $post_id) {
notice( t('Item not found') . EOL);
return;
}
intval(local_user())
);
- if(! count($itm)) {
+ if (! dbm::is_result($itm)) {
notice( t('Item not found') . EOL);
return;
}