Browse Source

Suppress error

Suppress error on some of Linux distro.
pull/31/merge
Danang Probo Sayekti 12 years ago
parent
commit
2949af2922
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      system/includes/functions.php

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

@ -36,8 +36,10 @@ function get_post_sorted(){
$tmp = glob('content/*/blog/*.md', GLOB_NOSORT); $tmp = glob('content/*/blog/*.md', GLOB_NOSORT);
foreach($tmp as $file) {
$_cache[] = pathinfo($file);
if (is_array($tmp)) {
foreach($tmp as $file) {
$_cache[] = pathinfo($file);
}
} }
} }


Loading…
Cancel
Save