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