From 93258e11701205b47b3775dbbb5f187a3a76266b Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 23 Sep 2013 13:29:21 +0200 Subject: [PATCH] Forgot to return false if add() didn't add anything. --- lib/tags.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tags.php b/lib/tags.php index e2e1a83dd9..955eb3cd36 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(),