Skip to content
Snippets Groups Projects
Commit cbe31fbf authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use `int` instead of `string`

parent 200c0c89
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment