diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-09-24 20:23:39 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-09-24 20:23:39 +0300 |
commit | 0de7f9019bdfea0e81a1de81ee87acd355eb5ee2 (patch) | |
tree | 8e575e6b641a14be91f5946b8f43fb8e6723de77 /lib | |
parent | 468ec50ed445766dcda04b8e7433c7fd58063c2a (diff) |
Fix empty activities
Signed-off-by: Matthias Held <matthias.held@uni-konstanz.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/ScanController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ScanController.php b/lib/Controller/ScanController.php index 54dee32..bd59fcc 100644 --- a/lib/Controller/ScanController.php +++ b/lib/Controller/ScanController.php @@ -304,7 +304,7 @@ class ScanController extends OCSController $rows[] = $row; } $result->closeCursor(); - if (is_array($rows)) { + if (isset($rows) && is_array($rows)) { return array_pop($rows); } else { $this->logger->debug('getLastActivity: No activity found.', array('app' => Application::APP_ID)); |