Use `int` instead of `string`

This commit is contained in:
Lukas Reschke 2015-02-16 12:01:05 +01:00
parent 200c0c89dc
commit cbe31fbf57
1 changed files with 1 additions and 1 deletions

View File

@ -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);