]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / share.php
index 085da4e30d8a8b6f15e343a480d6743f733def15..f2e016708fef321a74937e3c8c9be93e5ba87401 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-function share_init(&$a) {
+function share_init(App &$a) {
 
        $post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
        if((! $post_id) || (! local_user()))
@@ -12,7 +12,7 @@ function share_init(&$a) {
                intval($post_id),
                intval(local_user())
        );
-       if(! count($r) || ($r[0]['private'] == 1))
+       if(! dbm::is_result($r) || ($r[0]['private'] == 1))
                killme();
 
        if (!intval(get_config('system','old_share'))) {