@@ 188-192 (lines=5) @@ | ||
185 | } |
|
186 | } |
|
187 | ||
188 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
189 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
190 | continue; |
|
191 | } |
|
192 | } |
|
193 | ||
194 | $temp[$count]['cell'] = array( |
|
195 | $date, |
|
@@ 324-328 (lines=5) @@ | ||
321 | $week_data = ''; |
|
322 | } |
|
323 | ||
324 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
325 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
326 | continue; |
|
327 | } |
|
328 | } |
|
329 | ||
330 | $temp[$count]['cell'] = array($week_data, $date, $item['title'], Display::url($icons.' '.$lp_item['lp_name'], $lp_url, array('target'=>SESSION_LINK_TARGET))); |
|
331 | $temp[$count]['course'] = strip_tags($item['title']); |
|
@@ 447-451 (lines=5) @@ | ||
444 | continue; |
|
445 | } |
|
446 | } |
|
447 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
448 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
449 | continue; |
|
450 | } |
|
451 | } |
|
452 | $temp[$count]['cell'] = array( |
|
453 | $date, |
|
454 | $item['title'], |
@@ 2352-2359 (lines=8) @@ | ||
2349 | // Also check the time availability of the LP |
|
2350 | if ($is_visible) { |
|
2351 | // Adding visibility restrictions |
|
2352 | if (!empty($row['publicated_on']) && |
|
2353 | $row['publicated_on'] != '0000-00-00 00:00:00' |
|
2354 | ) { |
|
2355 | if ($now < api_strtotime($row['publicated_on'], 'UTC')) { |
|
2356 | //api_not_allowed(); |
|
2357 | $is_visible = false; |
|
2358 | } |
|
2359 | } |
|
2360 | ||
2361 | // Blocking empty start times see BT#2800 |
|
2362 | global $_custom; |
|
@@ 2372-2377 (lines=6) @@ | ||
2369 | } |
|
2370 | } |
|
2371 | ||
2372 | if (!empty($row['expired_on']) && $row['expired_on'] != '0000-00-00 00:00:00') { |
|
2373 | if ($now > api_strtotime($row['expired_on'], 'UTC')) { |
|
2374 | //api_not_allowed(); |
|
2375 | $is_visible = false; |
|
2376 | } |
|
2377 | } |
|
2378 | } |
|
2379 | ||
2380 | // Check if the subscription users/group to a LP is ON |