diff --git a/~dev_rating/application/classes/Controller/Api/V0/StudyPlan.php b/~dev_rating/application/classes/Controller/Api/V0/StudyPlan.php index 980efb88408f362c326de2bdc89e30c45f8e0e15..d959226b0657dfa219d705ce225ad980a29439ae 100644 --- a/~dev_rating/application/classes/Controller/Api/V0/StudyPlan.php +++ b/~dev_rating/application/classes/Controller/Api/V0/StudyPlan.php @@ -18,9 +18,7 @@ class Controller_Api_V0_StudyPlan extends Controller_Handler_Api { } if (empty($disciplineData->teacherIDs)) { - if (!empty($disciplineData->teachers)) { - throw new InvalidArgumentException('Discipline without teachers'); - } + throw new InvalidArgumentException('Discipline without teachers'); } switch ($disciplineData->type) {