code clean-up

This commit is contained in:
Bjoern Schiessle 2014-01-22 11:10:32 +01:00
parent 0b89a45f11
commit 8d36ddcf03
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ $source = $_GET['source'];
$start = $_GET['start'];
list ($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($source);
$count = 5; //show the newest revisions
if( ($versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source)) ) {
$versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source);
if( $versions ) {
$endReached = false;
if (count($versions) <= $start+$count) {