Skip to content
Snippets Groups Projects
Commit 7c475640 authored by Vladislav Yakovlev's avatar Vladislav Yakovlev
Browse files

FIX: sync create subject for discipline without teachers [2]

parent 8a04eb97
Branches
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment