diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-22 11:10:32 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-22 11:10:32 +0100 |
commit | 8d36ddcf0397facb43ae871ef0fba564e50c92bf (patch) | |
tree | 01ac29c8dd772841505579cdba27fde796993033 /apps/files_versions/ajax | |
parent | 0b89a45f11b820d7d40e5f4a3c476d42a0577f58 (diff) | |
download | nextcloud-server-8d36ddcf0397facb43ae871ef0fba564e50c92bf.tar.gz nextcloud-server-8d36ddcf0397facb43ae871ef0fba564e50c92bf.zip |
code clean-up
Diffstat (limited to 'apps/files_versions/ajax')
-rw-r--r-- | apps/files_versions/ajax/getVersions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index df29f401629..4cc1c428898 100644 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -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) { |