Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/ScanController.php2
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));