diff options
author | Lukas Winkler <git@lw1.at> | 2021-06-18 02:36:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 02:36:20 +0300 |
commit | 1b409df3610fce9dff57a241e3531319b114edca (patch) | |
tree | 9761e453b9b8b2a8f40ed6ea0d1e8257bb7699fb /core | |
parent | b59ff158066a657a7ed1e50b3afff6c3bfa3abba (diff) |
don't pass null as a glob() flag (#17687)
Diffstat (limited to 'core')
-rw-r--r-- | core/Filesystem.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Filesystem.php b/core/Filesystem.php index 8499ef56d7..43035781f8 100644 --- a/core/Filesystem.php +++ b/core/Filesystem.php @@ -41,7 +41,7 @@ class Filesystem TrackerCache::deleteTrackerCache(); PiwikCache::flushAll(); self::clearPhpCaches(); - + $pluginManager = Plugin\Manager::getInstance(); $plugins = $pluginManager->getLoadedPlugins(); foreach ($plugins as $plugin) { @@ -184,7 +184,7 @@ class Filesystem * @return array The list of paths that match the pattern. * @api */ - public static function globr($sDir, $sPattern, $nFlags = null) + public static function globr($sDir, $sPattern, $nFlags = 0) { if (($aFiles = \_glob("$sDir/$sPattern", $nFlags)) == false) { $aFiles = array(); |