summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-23 13:29:21 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-09-23 13:29:21 +0200
commit93258e11701205b47b3775dbbb5f187a3a76266b (patch)
tree3a1dc4fec4ef8f446ecbf3d12f6fc91eb6988a3a
parent0b4de847a93357160dc4acb3de651a7ee08a10df (diff)
downloadnextcloud-server-93258e11701205b47b3775dbbb5f187a3a76266b.tar.gz
nextcloud-server-93258e11701205b47b3775dbbb5f187a3a76266b.zip
Forgot to return false if add() didn't add anything.
-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(),