diff --git a/cis/private/lehre/benotungstool/anwesenheitstabelle.php b/cis/private/lehre/benotungstool/anwesenheitstabelle.php
index 811c74bfa..ea747b2c1 100644
--- a/cis/private/lehre/benotungstool/anwesenheitstabelle.php
+++ b/cis/private/lehre/benotungstool/anwesenheitstabelle.php
@@ -56,10 +56,6 @@ $p = new phrasen($sprache);
selObj.selectedIndex = 0;
}
}
- function confirmdelete()
- {
- return confirm('t('gesamtnote/wollenSieWirklichLoeschen')?>');
- }
//-->
diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php
index 7869bbdb5..5282214fb 100644
--- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php
+++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php
@@ -266,7 +266,7 @@ $uid = (isset($_GET['uid'])?$_GET['uid']:'');
y = y+50;
anlegendiv.style.top = y+"px";
- str += "
| t('benotungstool/pruefungAnlegenFuer');?> "+uid+": |
";
+ str += "| t('benotungstool/pruefungAnlegenFuer');?> "+uid+": |
";
str += "| Datum: | ";
str += " [DD.MM.YYYY] | ";
str += "
| Note: | ";
diff --git a/cis/private/lehre/benotungstool/verwaltung.php b/cis/private/lehre/benotungstool/verwaltung.php
index e3e15f818..200d324bc 100644
--- a/cis/private/lehre/benotungstool/verwaltung.php
+++ b/cis/private/lehre/benotungstool/verwaltung.php
@@ -68,7 +68,7 @@ $time = microtime_float();
}
function confirmdelete()
{
- return confirm('t('gesamtnote/wollenSieWirklichLoeschen');?>');
+ return confirm('t('gesamtnote/wollenSieWirklichLoeschen');?>');
}
//Aus- und Einblenden der Listen
diff --git a/include/uebung.class.php b/include/uebung.class.php
index fe27c23fd..92fdc803c 100644
--- a/include/uebung.class.php
+++ b/include/uebung.class.php
@@ -643,10 +643,20 @@ class uebung extends basis_db
return false;
}
}
- }
- $angabe = BENOTUNGSTOOL_PATH."angabe/".$row->angabedatei;
- if(file_exists($angabe))
- unlink($angabe);
+ }
+ $qry = "SELECT angabedatei FROM campus.tbl_uebung WHERE uebung_id=".$this->db_add_param($uebung_id, FHC_INTEGER).";";
+ if($result = $this->db_query($qry))
+ {
+ if($row = $this->db_fetch_object($result))
+ {
+ if($row->angabedatei!='')
+ {
+ $angabe = BENOTUNGSTOOL_PATH."angabe/".$row->angabedatei;
+ if(file_exists($angabe))
+ unlink($angabe);
+ }
+ }
+ }
$qry = "DELETE FROM campus.tbl_studentbeispiel WHERE beispiel_id IN(SELECT beispiel_id FROM campus.tbl_beispiel WHERE uebung_id=".$this->db_add_param($uebung_id, FHC_INTEGER).");
DELETE FROM campus.tbl_abgabe WHERE abgabe_id IN(SELECT abgabe_id FROM campus.tbl_studentuebung WHERE uebung_id=".$this->db_add_param($uebung_id, FHC_INTEGER).");