|
@@ -101,7 +101,7 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
} |
|
102
|
102
|
|
|
103
|
103
|
// Convert numeric-only values to days. |
|
104
|
|
- array_walk($clean_older_than, function (&$time) use ($custom_time) { |
|
|
104
|
+ array_walk($clean_older_than, function(&$time) use ($custom_time) { |
|
105
|
105
|
if (!empty($custom_time)) { |
|
106
|
106
|
$time = $custom_time; |
|
107
|
107
|
} |
|
@@ -357,9 +357,9 @@ discard block |
|
|
block discarded – undo |
|
357
|
357
|
} |
|
358
|
358
|
} |
|
359
|
359
|
|
|
360
|
|
- $pdo->commit(); // commit changes to the database and end transaction |
|
|
360
|
+ $pdo->commit(); // commit changes to the database and end transaction |
|
361
|
361
|
} catch (PDOException $e) { |
|
362
|
|
- $pdo->rollBack(); // rollback changes on exception (useful if you want to track down error - you can't replicate it when some of the data is already deleted...) |
|
|
362
|
+ $pdo->rollBack(); // rollback changes on exception (useful if you want to track down error - you can't replicate it when some of the data is already deleted...) |
|
363
|
363
|
|
|
364
|
364
|
$data['text'] = '*Database cleanup failed!* _(check your error logs)_'; |
|
365
|
365
|
Request::sendMessage($data); |
Please login to merge, or discard this patch.