diff --git a/include/zeitaufzeichnung_import.class.php b/include/zeitaufzeichnung_import.class.php index 2b4913341..2d2109b2f 100644 --- a/include/zeitaufzeichnung_import.class.php +++ b/include/zeitaufzeichnung_import.class.php @@ -244,10 +244,13 @@ protected function checkPhaseBebuchbar($phase) */ protected function checkIfArbeitspaketZuWaehlen($projekt_kurzbz, $phase) { - $this->project->load($projekt_kurzbz); - if (!$this->project->zeitaufzeichnung && !$phase) + if ($projekt_kurzbz != '') { - throw new Exception($this->p->t("global/fehlerBeimSpeichernDerDaten") . ': Bitte ein Arbeitspaket wählen!'); + $this->project->load($projekt_kurzbz); + if (!$this->project->zeitaufzeichnung && !$phase) + { + throw new Exception($this->p->t("global/fehlerBeimSpeichernDerDaten") . ': Bitte ein Arbeitspaket wählen!'); + } } }