]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Coding convention applied:
[friendica.git] / mod / starred.php
index 2a89ac768bae20cb3150c48b3d5a841347790611..0e5e75d1674bf335d6267bf984c208f1a3f2e941 100644 (file)
@@ -18,8 +18,9 @@ function starred_init(&$a) {
                intval(local_user()),
                intval($message_id)
        );
-       if(! count($r))
+       if (! dbm::is_result($r)) {
                killme();
+       }
 
        if(! intval($r[0]['starred']))
                $starred = 1;
@@ -39,7 +40,7 @@ function starred_init(&$a) {
                if(strpos($return_path, '?')) $rand = "&$rand";
                else $rand = "?$rand";
 
-               goaway($a->get_baseurl() . "/" . $return_path . $rand);
+               goaway(App::get_baseurl() . "/" . $return_path . $rand);
        }
 
        // the json doesn't really matter, it will either be 0 or 1