Toflar/easy_themes — Issue #8: error when no themes available at all
Author: Toflar
Created: 2012-01-27 13:39:09+00:00
State: open
Labels: Completed, Defect

Wenn im BE kein Theme angelegt ist bekommt man folgende Fehlermeldung:

```
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/system/modules/easy_themes/EasyThemes.php on line 131

#0 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/system/modules/easy_themes/EasyThemes.php(131): __error(2, 'Invalid argumen...', '/var/www/vhosts...', 131, Array)
#1 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/system/modules/easy_themes/EasyThemes.php(89): EasyThemes->generateContainerContent()
#2 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/system/modules/backend/BackendTemplate.php(57): EasyThemes->addContainer('parse()
#4 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/contao/main.php(295): BackendTemplate->output()
#5 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/contao/main.php(104): Main->output()
#6 /var/www/vhosts/e-c-o.at/subdomains/thei/htdocs/contao/main.php(304): Main->run()
#7 {main}

```

Patch folgt.
Leo

*--- Originally created by on 18.01.2011 13:53.*