Fix --limit argument of modcache.sh (#4848)
This commit is contained in:
parent
17f9f07df9
commit
bf9cec48be
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue