]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / editpost.php
index eccd498d154b1dcd6c2762a0d8bdb03ee92b6d92..a655801d7727ec11b60837fd3e2fbb4fcc76bc13 100644 (file)
@@ -2,18 +2,18 @@
 
 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;
        }
@@ -23,7 +23,7 @@ function editpost_content(&$a) {
                intval(local_user())
        );
 
-       if(! count($itm)) {
+       if (! dbm::is_result($itm)) {
                notice( t('Item not found') . EOL);
                return;
        }