Fix for some server
This commit is contained in:
parent
c022af2bf5
commit
569a53815f
|
@ -313,7 +313,7 @@ class dbPages extends dbJSON
|
|||
|
||||
// Recovery pages from subdirectories
|
||||
$subPaths = glob($directory.DS.'*', GLOB_ONLYDIR);
|
||||
foreach($subPaths as $subDirectory)
|
||||
foreach((array) $subPaths as $subDirectory)
|
||||
{
|
||||
$subKey = basename($subDirectory);
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ class Page extends fileContent
|
|||
{
|
||||
$tmp = array();
|
||||
$paths = glob(PATH_PAGES.$this->getField('key').DS.'*', GLOB_ONLYDIR);
|
||||
foreach($paths as $path) {
|
||||
foreach((array) $paths as $path) {
|
||||
array_push($tmp, basename($path));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue