Suppress error

Suppress error on some of Linux distro.
This commit is contained in:
Danang Probo Sayekti 2014-01-30 15:09:19 +07:00
commit 2949af2922

View file

@ -36,8 +36,10 @@ function get_post_sorted(){
$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);
}
}
}