]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / share.php
index 085da4e30d8a8b6f15e343a480d6743f733def15..0a34c6fc50699dd1923872f78d0aae8338be6820 100644 (file)
@@ -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'))) {