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:
authorMatthias Held <ilovemilk@wusa.io>2018-09-24 20:23:39 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-24 20:23:39 +0300
commit0de7f9019bdfea0e81a1de81ee87acd355eb5ee2 (patch)
tree8e575e6b641a14be91f5946b8f43fb8e6723de77 /lib
parent468ec50ed445766dcda04b8e7433c7fd58063c2a (diff)
Fix empty activities
Signed-off-by: Matthias Held <matthias.held@uni-konstanz.de>
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));