diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-13 17:28:34 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-13 17:28:34 +0300 |
commit | 4c9828720bd5151a12863558b968740c8e4b0719 (patch) | |
tree | 93d3f0f2a3d7615add200a2fc7b0007ea5eb01da /lib | |
parent | 717edbf3a1b5c85fd2660ecdf085a74d9f129676 (diff) |
Do not call invalid function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BackgroundJobs/MonthlyReport.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/BackgroundJobs/MonthlyReport.php b/lib/BackgroundJobs/MonthlyReport.php index ccb0cc1..d81ddcc 100644 --- a/lib/BackgroundJobs/MonthlyReport.php +++ b/lib/BackgroundJobs/MonthlyReport.php @@ -23,6 +23,7 @@ namespace OCA\Survey_Client\BackgroundJobs; use OC\BackgroundJob\TimedJob; use OCA\Survey_Client\AppInfo\Application; +use OCP\AppFramework\Http; class MonthlyReport extends TimedJob { @@ -40,7 +41,7 @@ class MonthlyReport extends TimedJob { $collector = $application->getContainer()->query('OCA\Survey_Client\Collector'); $result = $collector->sendReport(); - if (!$result->succeeded()) { + if ($result->getStatus() !== Http::STATUS_OK) { \OC::$server->getLogger()->info('Error while sending usage statistic'); } } |