Fix --limit argument of modcache.sh (#4848)

This commit is contained in:
Aleksander Machniak 2015-05-12 13:25:38 +02:00
parent 17f9f07df9
commit bf9cec48be

View file

@ -90,7 +90,7 @@ case 'expunge':
$sql_query = "DELETE FROM %s WHERE folder_id IN (SELECT folder_id FROM kolab_folders WHERE $sql_where) AND created <= " . $db->quote(date('Y-m-d 00:00:00', $expire));
if ($opts['limit']) {
$sql_query = ' LIMIT ' . intval($opts['limit']);
$sql_query .= ' LIMIT ' . intval($opts['limit']);
}
foreach ($folder_types as $type) {
$table_name = 'kolab_cache_' . $type;