projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809c897
)
RecursiveDirectoryIterator throws a fatal error if the directory doesn't exist, so...
author
Chuck Hagenbuch
<chuck@horde.org>
Thu, 25 Nov 2010 02:38:27 +0000
(21:38 -0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Thu, 25 Nov 2010 02:38:27 +0000
(21:38 -0500)
framework/Core/lib/Horde/Themes/Cache.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Themes/Cache.php
b/framework/Core/lib/Horde/Themes/Cache.php
index
b343dc1
..
74daa09
100644
(file)
--- a/
framework/Core/lib/Horde/Themes/Cache.php
+++ b/
framework/Core/lib/Horde/Themes/Cache.php
@@
-111,8
+111,9
@@
class Horde_Themes_Cache implements Serializable
protected function _build($app, $theme, $mask)
{
$path = $GLOBALS['registry']->get('themesfs', $app) . '/'. $theme;
- $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
+ if (!is_readable($path)) { return; }
+ $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
foreach ($it as $val) {
if (!$val->isDir()) {
$sub = $it->getSubPathname();