From 3ca918f527259ec402c2349741cb9de5ea602310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 9 Jul 2012 07:55:17 +0000 Subject: [PATCH] =?UTF-8?q?Fehler=20beim=20=C3=9Cbertragen=20ins=20Opus=20?= =?UTF-8?q?behoben,=20wenn=20mehrere=20Endupload=20Termine=20eingetragen?= =?UTF-8?q?=20sind=20und=20bei=20einem=20der=20Termine=20kein=20Dokument?= =?UTF-8?q?=20hochgeladen=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/abgabe2opus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/abgabe2opus.php b/system/abgabe2opus.php index 215d5edbc..1bbe10de6 100644 --- a/system/abgabe2opus.php +++ b/system/abgabe2opus.php @@ -1466,7 +1466,7 @@ if($erg=pg_query($db_conn,$qry)) if($row->freigegeben) { //Kopieren der Abgabedatei - $qry_file="SELECT * FROM campus.tbl_paabgabe WHERE projektarbeit_id='".$row->projektarbeit_id."' and paabgabetyp_kurzbz='end' ORDER BY abgabedatum desc LIMIT 1"; + $qry_file="SELECT * FROM campus.tbl_paabgabe WHERE projektarbeit_id='".$row->projektarbeit_id."' and paabgabetyp_kurzbz='end' AND abgabedatum is not null ORDER BY abgabedatum desc LIMIT 1"; if($result_file=pg_query($db_conn,$qry_file)) { if($row_file=pg_fetch_object($result_file))