Fix for some server

This commit is contained in:
Frédéric K 2015-09-14 21:12:57 +02:00
parent c022af2bf5
commit 569a53815f
2 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ class dbPages extends dbJSON
// Recovery pages from subdirectories // Recovery pages from subdirectories
$subPaths = glob($directory.DS.'*', GLOB_ONLYDIR); $subPaths = glob($directory.DS.'*', GLOB_ONLYDIR);
foreach($subPaths as $subDirectory) foreach((array) $subPaths as $subDirectory)
{ {
$subKey = basename($subDirectory); $subKey = basename($subDirectory);

View File

@ -142,7 +142,7 @@ class Page extends fileContent
{ {
$tmp = array(); $tmp = array();
$paths = glob(PATH_PAGES.$this->getField('key').DS.'*', GLOB_ONLYDIR); $paths = glob(PATH_PAGES.$this->getField('key').DS.'*', GLOB_ONLYDIR);
foreach($paths as $path) { foreach((array) $paths as $path) {
array_push($tmp, basename($path)); array_push($tmp, basename($path));
} }