main/create_course/add_course.php 1 location
|
@@ 273-277 (lines=5) @@
|
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
// Check whether the requested course code has already been occupied. |
| 273 |
|
if (!$course_validation_feature) { |
| 274 |
|
$course_code_ok = !CourseManager::course_code_exists($wanted_code); |
| 275 |
|
} else { |
| 276 |
|
$course_code_ok = !CourseRequestManager::course_code_exists($wanted_code); |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
if ($course_code_ok) { |
| 280 |
|
if (!$course_validation_feature) { |
src/Chamilo/CoreBundle/Controller/UserPortalController.php 1 location
|
@@ 283-291 (lines=9) @@
|
| 280 |
|
} |
| 281 |
|
|
| 282 |
|
// Check whether the requested course code has already been occupied. |
| 283 |
|
if (!$courseValidation) { |
| 284 |
|
$course_code_ok = !\CourseManager::course_code_exists( |
| 285 |
|
$wanted_code |
| 286 |
|
); |
| 287 |
|
} else { |
| 288 |
|
$course_code_ok = !\CourseRequestManager::course_code_exists( |
| 289 |
|
$wanted_code |
| 290 |
|
); |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
if ($course_code_ok) { |
| 294 |
|
if (!$courseValidation) { |