intval(local_user()),
intval($message_id)
);
- if(! count($r))
+ if (! dbm::is_result($r)) {
killme();
+ }
if(! intval($r[0]['starred']))
$starred = 1;
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