@ -5778,6 +5778,10 @@ function api_get_multiple_access_url() {
return false;
}
function api_is_multiple_url_enabled() {
return api_get_multiple_access_url();
/**
* Returns a md5 unique id
* @todo add more parameters
@ -610,7 +610,12 @@ class SystemAnnouncementManager {
if (isset($id) && !empty($id)) {
$id = intval($id);
$sql .= " AND id = $id ";
if (api_is_multiple_url_enabled()) {
$current_url_id = api_get_current_access_url_id();
$sql .= " AND access_url_id IN ('1', '$current_url_id') ";
$sql .= " ORDER BY date_start DESC";