diff options
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)); |