diff options
Diffstat (limited to 'apps/files_versions/history.php')
-rw-r--r-- | apps/files_versions/history.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php index d4c278ebd85..6e27f43d576 100644 --- a/apps/files_versions/history.php +++ b/apps/files_versions/history.php @@ -52,10 +52,8 @@ if ( isset( $_GET['path'] ) ) { } // show the history only if there is something to show - if( OCA_Versions\Storage::isversioned( $path ) ) { - - $count = 999; //show the newest revisions - $versions = OCA_Versions\Storage::getVersions( $path, $count); + $count = 999; //show the newest revisions + if( ($versions = OCA_Versions\Storage::getVersions( $path, $count)) ) { $tmpl->assign( 'versions', array_reverse( $versions ) ); |