From b3b6bf92d19cd9d90a34d2274576ef4b4d140b5c Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Mon, 26 Feb 2007 15:08:44 +0000 Subject: [PATCH] --- content/timetable-week.xul.php | 1 + include/lehrstunde.class.php | 1 + rdf/lehrstunde.rdf.php | 13 ++++++++----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/content/timetable-week.xul.php b/content/timetable-week.xul.php index f67844917..22d95dabd 100644 --- a/content/timetable-week.xul.php +++ b/content/timetable-week.xul.php @@ -145,6 +145,7 @@ if ($aktion=='lva_single_search' || $aktion=='lva_single_set' //$error_msg.=$lva_id[$i]; $name_lva_id='lva_id'.++$i; } + $lva_id=array_unique($lva_id); } if ($aktion=='stpl_move' || $aktion=='stpl_single_search' || $aktion=='stpl_set' || $aktion=='stpl_delete_single') { diff --git a/include/lehrstunde.class.php b/include/lehrstunde.class.php index 882bc873d..9751416a1 100644 --- a/include/lehrstunde.class.php +++ b/include/lehrstunde.class.php @@ -347,6 +347,7 @@ class lehrstunde $sql_query=substr($sql_query,3); $sql_query_stdplan.=' WHERE'.$sql_query; } + //echo $sql_query_stdplan; //Datenbankabfrage if (! $stpl_tbl=pg_query($this->conn, $sql_query_stdplan)) { diff --git a/rdf/lehrstunde.rdf.php b/rdf/lehrstunde.rdf.php index 4b7dca715..d97dfb3c6 100644 --- a/rdf/lehrstunde.rdf.php +++ b/rdf/lehrstunde.rdf.php @@ -30,12 +30,15 @@ function checkID($needle) return false; } -$id_list=array(); -while(list($k,$v)=each($_GET)) - if (strpos($k,'stundenplan_id')!==false) - $idList[]=$v; +if (isset($stundenplan_id0)) +{ + $idList=array(); + while(list($k,$v)=each($_GET)) + if (strpos($k,'stundenplan_id')!==false) + $idList[]=$v; +} -//print_r($id_list); +//print_r($idList); if (!isset($REMOTE_USER)) $REMOTE_USER='pam';