only add media if path is one value

This commit is contained in:
Llewellyn van der Merwe 2017-12-12 02:41:24 +02:00
parent 27ff09226b
commit ba07f1aae3
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ class Structure extends Get
{
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] = '';
}
if (count($pathArray) >= 1 && $firstFolder === 'media')
if (count($pathArray) == 1 && $firstFolder === 'media')
{
$this->fileContentStatic['###EXSTRA_MEDIA_FOLDERS###'] .= PHP_EOL."\t\t<folder>".$lastFolder."</folder>";
}