diff --git a/include/studienplan.class.php b/include/studienplan.class.php index 61325f6c4..9a353eb5c 100644 --- a/include/studienplan.class.php +++ b/include/studienplan.class.php @@ -896,12 +896,17 @@ class studienplan extends basis_db $this->db_add_param($key["ausbildungssemester"]) . '); '; } - if (!$this->db_query($qry)) + if($qry!='') { - $this->errormsg = 'Fehler beim Speichern des Datensatzes'; - return false; + if (!$this->db_query($qry)) + { + $this->errormsg = 'Fehler beim Speichern des Datensatzes'; + return false; + } + return true; } - return true; + else + return true; } else {