@ -40,12 +40,12 @@ class Unicalendar
$urubric_id = $v['uca_rubric_id'];
$urubric_id = $v['uca_rubric_id'];
$udoc_id = $v['uca_doc_id'];
$udoc_id = $v['uca_doc_id'];
}
}
// Если выбрали вывести все документы из заданной рубрики - документы с Id=1 и Id=2 - выводиться не будут!
// Если выбрали вывести все документы из заданной рубрики - документы с Id=1 (Главная) и 404 страница - выводиться не будут!
if ($uevents !='' & & $uevents == '1'){
if ($uevents !='' & & $uevents == '1'){
$sql = $AVE_DB->Query("
$sql = $AVE_DB->Query("
SELECT Id, document_alias, document_title, document_published, document_meta_description
SELECT Id, document_alias, document_title, document_published, document_meta_description
FROM " . PREFIX . "_documents
FROM " . PREFIX . "_documents
WHERE rubric_id = '" . $urubric_id . "' AND Id > 2
WHERE rubric_id = '" . $urubric_id . "' AND Id !=1 & & Id != '".PAGE_NOT_FOUND_ID."'
");
");
$results = array();
$results = array();
while ($row = $sql->FetchAssocArray())
while ($row = $sql->FetchAssocArray())
@ -60,7 +60,7 @@ class Unicalendar
$sql = $AVE_DB->Query("
$sql = $AVE_DB->Query("
SELECT Id, document_alias, document_title, document_published, document_meta_description
SELECT Id, document_alias, document_title, document_published, document_meta_description
FROM " . PREFIX . "_documents
FROM " . PREFIX . "_documents
WHERE rubric_id = '" . $urubric_id . "' AND Id > 2 AND $udoc_id
WHERE rubric_id = '" . $urubric_id . "' AND Id !=1 & & Id != '".PAGE_NOT_FOUND_ID."' AND $udoc_id
");
");
$results = array();
$results = array();
while ($row = $sql->FetchAssocArray())
while ($row = $sql->FetchAssocArray())