Browse Source

PHP 8 support

Simple fix to support PHP 8.
pull/405/merge
Dan 4 years ago
committed by GitHub
parent
commit
7cb39f662f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      system/includes/functions.php

+ 2
- 2
system/includes/functions.php View File

@ -158,13 +158,13 @@ function get_category_folder()
// usort function. Sort by filename.
function sortfile($a, $b)
{
return $a['basename'] == $b['basename'] ? 0 : ($a['basename'] < $b['basename']) ? 1 : -1;
return $a['basename'] == $b['basename'] ? 0 : (($a['basename'] < $b['basename']) ? 1 : -1);
}
// usort function. Sort by date.
function sortdate($a, $b)
{
return $a->date == $b->date ? 0 : ($a->date < $b->date) ? 1 : -1;
return $a->date == $b->date ? 0 : (($a->date < $b->date) ? 1 : -1);
}
// Rebuilt cache index


Loading…
Cancel
Save