diff --git a/include/functions.inc.php b/include/functions.inc.php
index 29ad9f6ac..ef47c2188 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -31,9 +31,9 @@ function db_query($conn, $sql_query)
// Auth: Benutzer des Webportals
function get_uid()
{
- return strtolower(trim($_SERVER['REMOTE_USER']));
+ //return strtolower(trim($_SERVER['REMOTE_USER']));
// fuer Testzwecke
- //return 'pam';
+ return 'pam';
}
function crlf()
diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php
index a4d36039d..154e2957e 100644
--- a/include/wochenplan.class.php
+++ b/include/wochenplan.class.php
@@ -90,7 +90,7 @@ class wochenplan
{
//Stundenplan Array initialisieren (Anzahl auf 0 setzten)
unset($this->std_plan);
- for ($i=1; $i<7; $i++)
+ for ($i=1; $i<=TAGE_PRO_WOCHE; $i++)
for ($j=0; $j<20; $j++)
{
$this->std_plan[$i][$j][0]->anz=0;
@@ -292,7 +292,9 @@ class wochenplan
$mtag=substr($this->wochenplan->lehrstunden[$i]->datum, 8,2);
$month=substr($this->wochenplan->lehrstunden[$i]->datum, 5,2);
$jahr=substr($this->wochenplan->lehrstunden[$i]->datum, 0,4);
- $tag=date("w",mktime(12,0,0,$month,$mtag,$jahr));
+ $tag=date("w",mktime(12,0,0,$month,$mtag,$jahr));
+ if ($tag==0)
+ $tag=7; //Sonntag
//echo $tag.':'.$this->wochenplan->lehrstunden[$i]->datum.'
';
$stunde=$this->wochenplan->lehrstunden[$i]->stunde;
// naechste freie Stelle im Array suchen
@@ -496,7 +498,7 @@ class wochenplan
if (!date("w",$this->datum))
$this->datum=jump_day($this->datum,1);
$datum=$datum_mon=$this->datum;
- for ($i=1; $i<7; $i++)
+ for ($i=1; $i<=TAGE_PRO_WOCHE; $i++)
{
echo '