diff --git a/php/elFinder.class.php b/php/elFinder.class.php index 0c6677caf..45a0e6dff 100644 --- a/php/elFinder.class.php +++ b/php/elFinder.class.php @@ -4511,7 +4511,7 @@ var go = function() { foreach ($hashes as $hash) { $lock = elFinder::$commonTempPath . DIRECTORY_SEPARATOR . self::filenameDecontaminate($hash) . '.lock'; if ($this->itemLocked($hash)) { - $cnt = file_get_contents($lock) + 1; + $cnt = (int)file_get_contents($lock) + 1; } else { $cnt = 1; }