Glossary PHP warning/notices fixed

skala
Julio Montoya 14 years ago
parent cd36dc55ff
commit eed8b63643
  1. 2
      main/glossary/index.php
  2. 4
      main/inc/lib/glossary.lib.php

@ -51,7 +51,7 @@ Display::display_header(get_lang(ucfirst($tool)));
// Tool introduction
Display::display_introduction_section(TOOL_GLOSSARY);
if ($_GET['action'] == 'changeview' AND in_array($_GET['view'],array('list','table'))) {
if (isset($_GET['action']) && $_GET['action'] == 'changeview' AND in_array($_GET['view'],array('list','table'))) {
$_SESSION['glossary_view'] = $_GET['view'];
} else {
if (!isset($_SESSION['glossary_view'])) {

@ -305,7 +305,7 @@ class GlossaryManager {
* @version januari 2009, dokeos 1.8.6
*/
function display_glossary_list() {
$glossary_data = self::get_glossary_data(0,1000,0,ASC);
$glossary_data = self::get_glossary_data(0,1000,0,'ASC');
foreach($glossary_data as $key=>$glossary_item) {
echo '<div class="sectiontitle">'.$glossary_item[0].'</div>';
@ -441,7 +441,7 @@ class GlossaryManager {
}
}*/
$glossary_id = $row[2];
$return .= '<a href="'.api_get_self().'?action=edit_glossary&amp;glossary_id='.$glossary_id.'&'.api_get_cidreq().'&msg=edit">'.Display::return_icon('edit.png',get_lang('Edit'),'',22).'</a>';
$return = '<a href="'.api_get_self().'?action=edit_glossary&amp;glossary_id='.$glossary_id.'&'.api_get_cidreq().'&msg=edit">'.Display::return_icon('edit.png',get_lang('Edit'),'',22).'</a>';
$glossary_data = GlossaryManager::get_glossary_information($glossary_id);
$glossary_term = $glossary_data['glossary_title'];

Loading…
Cancel
Save