]> source.dussan.org Git - nextcloud-server.git/commitdiff
Forgot to return false if add() didn't add anything.
authorThomas Tanghus <thomas@tanghus.net>
Mon, 23 Sep 2013 11:29:21 +0000 (13:29 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 23 Sep 2013 21:39:36 +0000 (23:39 +0200)
lib/tags.php

index e2e1a83dd9432c82d0def044f30271315b56aeae..955eb3cd363202c9ca1febe22cb5693837034394 100644 (file)
@@ -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(),