Bugfix - Mailversand an Betreuer beim doppelten Upload von Projektarbeiten

This commit is contained in:
Andreas Österreicher
2012-01-09 15:23:21 +00:00
parent bdda866496
commit 190c86873c
2 changed files with 11 additions and 12 deletions
+3 -1
View File
@@ -212,7 +212,8 @@ if($command=='add')
updatevon = '".addslashes($user)."',
updateamum = now()
WHERE paabgabe_id='".addslashes($paabgabe_id)."'";
$result=$db->db_query($qry);
if($db->db_query($qry))
echo '<font color="green">'.$p->t('global/erfolgreichgespeichert').'</font><br>';
$command="update";
}
else
@@ -287,6 +288,7 @@ if($command=="update" && $error!=true)
$htmlstr .= "<input type='hidden' name='titel' value='".$titel."'>\n";
$htmlstr .= "<input type='hidden' name='uid' value='".$uid."'>\n";
$htmlstr .= "<input type='hidden' name='betreuer' value='".$betreuer."'>\n";
$htmlstr .= "<input type='hidden' name='bid' value='".$bid."'>\n";
$htmlstr .= "<input type='hidden' name='command' value='add'>\n";
$htmlstr .= "<tr>\n";
$htmlstr .= "<td><b>".$p->t('abgabetool/spracheDerArbeit').":</b></td><td>";
+8 -11
View File
@@ -27,18 +27,15 @@
* für Diplom- und Bachelorarbeiten
*******************************************************************************************************/
require_once('../../config/cis.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
require_once('../../include/functions.inc.php');
require_once('../../include/studiengang.class.php');
require_once('../../include/datum.class.php');
require_once('../../include/benutzerberechtigung.class.php');
require_once('../../include/Excel/excel.php');
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/studiengang.class.php');
require_once('../../include/datum.class.php');
require_once('../../include/benutzerberechtigung.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
if(!isset($_POST['uid']))
{
$uid = (isset($_GET['uid'])?$_GET['uid']:'-1');