]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Continued with #3010:
[friendica.git] / mod / starred.php
index b4cc3267872de06d078f74938046721c895faf98..27f924e44b5452abad9c95ca3ec655019f83b23e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if(! function_exists('starred_init')) {
+
 function starred_init(&$a) {
 
        require_once("include/threads.php");
@@ -18,7 +18,7 @@ function starred_init(&$a) {
                intval(local_user()),
                intval($message_id)
        );
-       if(! count($r))
+       if(! dbm::is_result($r))
                killme();
 
        if(! intval($r[0]['starred']))
@@ -47,4 +47,3 @@ function starred_init(&$a) {
        echo json_encode($starred);
        killme();
 }
-}