diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 2 | ||||
-rw-r--r-- | lib/private/legacy/app.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 731481d4f4f..ba9b15ce931 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -180,7 +180,7 @@ class Local extends \OC\Files\Storage\Common { public function filemtime($path) { $fullPath = $this->getSourcePath($path); - clearstatcache($fullPath); + clearstatcache(true, $fullPath); if (!$this->file_exists($path)) { return false; } diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 1b9fc28873e..8114895416b 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -671,7 +671,7 @@ class OC_App { public static function getCurrentApp() { $request = \OC::$server->getRequest(); $script = substr($request->getScriptName(), strlen(OC::$WEBROOT) + 1); - $topFolder = substr($script, 0, strpos($script, '/')); + $topFolder = substr($script, 0, strpos($script, '/') ?: 0); if (empty($topFolder)) { $path_info = $request->getPathInfo(); if ($path_info) { |