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 23:39:36 +0200
commitbe402fab53bb4eb3ce027ef9d6edb089e356a820 (patch)
tree6317acc2a013e9c831e358b002fba216eeec3167
parent8a02afd87ae1e9a8d223f20ca2df35145a16ce74 (diff)
downloadnextcloud-server-be402fab53bb4eb3ce027ef9d6edb089e356a820.tar.gz
nextcloud-server-be402fab53bb4eb3ce027ef9d6edb089e356a820.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(),