Set $filemtime if not set, need to use in JSON

This commit is contained in:
Matt Pass
2015-04-27 16:12:44 +01:00
parent c34b2608cc
commit 85a9cfaecd

View File

@@ -585,6 +585,11 @@ if (!$error && $_GET['action']=="perms") {
// JSON DATA TO RETURN
// ===================
// No $filemtime yet? Get it now!
if (!isset($filemtime)) {
$filemtime = $serverType=="Linux" ? filemtime($file) : "1000000";
}
echo '{
"file": {
"absPath": "'.$file.'",