summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tags.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tags.php b/lib/tags.php
index e2e1a83dd94..955eb3cd363 100644
--- a/lib/tags.php
+++ b/lib/tags.php
@@ -246,6 +246,7 @@ class Tags implements \OCP\ITags {
return false;
} elseif((int)$result === 0) {
\OCP\Util::writeLog('core', __METHOD__.', Tag already exists: ' . $name, \OCP\Util::DEBUG);
+ return false;
}
} catch(\Exception $e) {
\OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(),