diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-19 21:23:25 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-19 21:29:16 +0200 |
commit | 5f997021d110ea5e9b9e68e3284025cb70f3a661 (patch) | |
tree | db8219278c3cc108449ab4ff14c01e42fe4afb7b /apps/files_versions | |
parent | ee32d1aad56a5877571899dbc5e40639b1b5a18b (diff) | |
download | nextcloud-server-5f997021d110ea5e9b9e68e3284025cb70f3a661.tar.gz nextcloud-server-5f997021d110ea5e9b9e68e3284025cb70f3a661.zip |
Fix syntax bug
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/versions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 708d9e8c0ce..7d12e58f941 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -254,7 +254,7 @@ class Storage { if( count( $matches ) > \OCP\Config::getSystemValue( 'files_versionmaxversions', Storage::DEFAULTMAXVERSIONS ) ) { - $numberToDelete = count( $matches-\OCP\Config::getSystemValue( 'files_versionmaxversions', Storage::DEFAULTMAXVERSIONS ) ); + $numberToDelete = count($matches) - \OCP\Config::getSystemValue( 'files_versionmaxversions', Storage::DEFAULTMAXVERSIONS ); // delete old versions of a file $deleteItems = array_slice( $matches, 0, $numberToDelete ); |