|
|
|
@ -180,15 +180,17 @@ if (is_array($flat_list)) { |
|
|
|
|
if (!$is_allowed_to_edit) { |
|
|
|
|
|
|
|
|
|
$time_limits = false; |
|
|
|
|
if ($details['expired_on'] != '' && $details['expired_on'] != '0000-00-00 00:00:00') { |
|
|
|
|
$time_limits = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//This is an old LP (from a migration) so we do nothing |
|
|
|
|
//This is an old LP (from a migration 1.8.7) so we do nothing |
|
|
|
|
if ( (empty($details['created_on']) || $details['created_on'] == '0000-00-00 00:00:00') && (empty($details['modified_on']) || $details['modified_on'] == '0000-00-00 00:00:00')) { |
|
|
|
|
$time_limits = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Checking if expired_on is ON |
|
|
|
|
if ($details['expired_on'] != '' && $details['expired_on'] != '0000-00-00 00:00:00') { |
|
|
|
|
$time_limits = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($time_limits) { |
|
|
|
|
// check if start time |
|
|
|
|
if (!empty($details['publicated_on']) && $details['publicated_on'] != '0000-00-00 00:00:00' && |
|
|
|
@ -207,10 +209,8 @@ if (is_array($flat_list)) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$counter++; |
|
|
|
|
if (($counter % 2) == 0) { $oddclass = 'row_odd'; } else { $oddclass = 'row_even'; } |
|
|
|
|
|
|
|
|
|