diff options
Diffstat (limited to 'mod/opendd')
-rw-r--r-- | mod/opendd/start.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/opendd/start.php b/mod/opendd/start.php index d9e3ee9f7..ee4e2cdb4 100644 --- a/mod/opendd/start.php +++ b/mod/opendd/start.php @@ -330,11 +330,13 @@ foreach ($elements as $e) $opendd_elements[] = $e; - foreach ($opendd_elements as $k => $v) - $opendd_published[$k] = $v->getPublishedAsTime(); + } } + foreach ($opendd_elements as $k => $v) + $opendd_published[$k] = $v->getPublishedAsTime(); + // Sort by date (desc) arsort($opendd_published); $sorted_odd_elements = array(); |