Use `int` instead of `string`

remotes/origin/log-external-deletes
Lukas Reschke 10 years ago
parent 200c0c89dc
commit cbe31fbf57
  1. 2
      apps/files_versions/ajax/getVersions.php

@ -4,7 +4,7 @@ OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('files_versions');
$source = (string)$_GET['source'];
$start = (string)$_GET['start'];
$start = (int)$_GET['start'];
list ($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($source);
$count = 5; //show the newest revisions
$versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source);

Loading…
Cancel
Save