@@ -376,7 +376,8 @@ |
||
| 376 | 376 | return new DateTime($logTime); |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | - public function getLastUpdated() { |
|
| 379 | + public function getLastUpdated() |
|
| 380 | + { |
|
| 380 | 381 | $logQuery = $this->dbObject->prepare(<<<SQL |
| 381 | 382 | SELECT max(d.ts) FROM ( |
| 382 | 383 | SELECT r.date AS ts FROM request r WHERE r.id = :requestr |
@@ -117,7 +117,8 @@ |
||
| 117 | 117 | Logger::backgroundJobIssue($this->getDatabase(), $job); |
| 118 | 118 | |
| 119 | 119 | $database->commit(); |
| 120 | - } catch (Exception $ex) { |
|
| 120 | + } |
|
| 121 | + catch (Exception $ex) { |
|
| 121 | 122 | // oops, something went horribly wrong trying to handle this in a nice way; let's just fall back to |
| 122 | 123 | // logging this to disk for a tool root to investigate. |
| 123 | 124 | ExceptionHandler::logExceptionToDisk($ex, $this->getSiteConfiguration()); |