Use `int` instead of `string`
This commit is contained in:
parent
200c0c89dc
commit
cbe31fbf57
|
@ -4,7 +4,7 @@ OCP\JSON::callCheck();
|
||||||
OCP\JSON::checkAppEnabled('files_versions');
|
OCP\JSON::checkAppEnabled('files_versions');
|
||||||
|
|
||||||
$source = (string)$_GET['source'];
|
$source = (string)$_GET['source'];
|
||||||
$start = (string)$_GET['start'];
|
$start = (int)$_GET['start'];
|
||||||
list ($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($source);
|
list ($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($source);
|
||||||
$count = 5; //show the newest revisions
|
$count = 5; //show the newest revisions
|
||||||
$versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source);
|
$versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source);
|
||||||
|
|
Loading…
Reference in New Issue