diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2008-11-26 20:08:57 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2008-11-26 20:08:57 +0300 |
commit | ca3e57c942e9134ac4b9eea230d44b620d4004a7 (patch) | |
tree | 8029b2951b65a9d11358f2bef0d82d6bdf41202f /core/Updater.php | |
parent | aca28bf60e172df70cd1bd61bf513aab29a40961 (diff) |
- fix Warning: Invalid argument supplied for foreach() in /var/www/piwik/core/Updater.php on line 99
git-svn-id: http://dev.piwik.org/svn/trunk@767 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Updater.php b/core/Updater.php index 2cbc22b512..93523b8a79 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -96,7 +96,12 @@ class Piwik_Updater $pathToUpdates = sprintf($this->pathUpdateFilePlugins, $name) . '*'; } - foreach( glob( $pathToUpdates ) as $file) + $files = glob( $pathToUpdates ); + if($files === false) + { + continue; + } + foreach( $files as $file) { $fileVersion = basename($file, '.php'); if(version_compare($currentVersion, $fileVersion) == -1) |