mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Suppress error
Suppress error on some of Linux distro.
This commit is contained in:
parent
e12cf5ca7a
commit
2949af2922
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue