X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fstarred.php;h=0e5e75d1674bf335d6267bf984c208f1a3f2e941;hb=98b727029570b96febd0c5046b688cab1a9bb882;hp=2a89ac768bae20cb3150c48b3d5a841347790611;hpb=3c97a6703cd5a743fc9339f52996bcb1eb436ef0;p=friendica.git diff --git a/mod/starred.php b/mod/starred.php index 2a89ac768b..0e5e75d167 100644 --- a/mod/starred.php +++ b/mod/starred.php @@ -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