}
$item = Item::selectFirstForUser(local_user(), ['starred'], ['uid' => local_user(), 'id' => $message_id]);
if (!DBA::isResult($item)) {
}
$item = Item::selectFirstForUser(local_user(), ['starred'], ['uid' => local_user(), 'id' => $message_id]);
if (!DBA::isResult($item)) {
Item::update(['starred' => $starred], ['id' => $message_id]);
// See if we've been passed a return path to redirect to
Item::update(['starred' => $starred], ['id' => $message_id]);
// See if we've been passed a return path to redirect to
}
// the json doesn't really matter, it will either be 0 or 1
echo json_encode($starred);
}
// the json doesn't really matter, it will either be 0 or 1
echo json_encode($starred);