| @@ 268-280 (lines=13) @@ | ||
| 265 | } |
|
| 266 | ||
| 267 | // $setting_show_also_closed_courses |
|
| 268 | if ($user_identified) { |
|
| 269 | if ($setting_show_also_closed_courses) { |
|
| 270 | $platform_visible_courses = ''; |
|
| 271 | } else { |
|
| 272 | $platform_visible_courses = " AND (t3.visibility='".COURSE_VISIBILITY_OPEN_WORLD."' OR t3.visibility='".COURSE_VISIBILITY_OPEN_PLATFORM."' )"; |
|
| 273 | } |
|
| 274 | } else { |
|
| 275 | if ($setting_show_also_closed_courses) { |
|
| 276 | $platform_visible_courses = ''; |
|
| 277 | } else { |
|
| 278 | $platform_visible_courses = " AND (t3.visibility='".COURSE_VISIBILITY_OPEN_WORLD."' )"; |
|
| 279 | } |
|
| 280 | } |
|
| 281 | $sqlGetSubCatList = " |
|
| 282 | SELECT t1.name, |
|
| 283 | t1.code, |
|
| @@ 374-386 (lines=13) @@ | ||
| 371 | ||
| 372 | $platform_visible_courses = ''; |
|
| 373 | // $setting_show_also_closed_courses |
|
| 374 | if ($user_identified) { |
|
| 375 | if ($setting_show_also_closed_courses) { |
|
| 376 | $platform_visible_courses = ''; |
|
| 377 | } else { |
|
| 378 | $platform_visible_courses = " AND (t3.visibility='".COURSE_VISIBILITY_OPEN_WORLD."' OR t3.visibility='".COURSE_VISIBILITY_OPEN_PLATFORM."' )"; |
|
| 379 | } |
|
| 380 | } else { |
|
| 381 | if ($setting_show_also_closed_courses) { |
|
| 382 | $platform_visible_courses = ''; |
|
| 383 | } else { |
|
| 384 | $platform_visible_courses = " AND (t3.visibility='".COURSE_VISIBILITY_OPEN_WORLD."' )"; |
|
| 385 | } |
|
| 386 | } |
|
| 387 | $sqlGetSubCatList = " |
|
| 388 | SELECT t1.name,t1.code,t1.parent_id,t1.children_count,COUNT(DISTINCT t3.code) AS nbCourse |
|
| 389 | FROM $main_category_table t1 |
|