From: Thomas Tanghus Date: Mon, 23 Sep 2013 11:29:21 +0000 (+0200) Subject: Forgot to return false if add() didn't add anything. X-Git-Tag: v6.0.0alpha2~121^2~7^2~1^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93258e11701205b47b3775dbbb5f187a3a76266b;p=nextcloud-server.git Forgot to return false if add() didn't add anything. --- 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(),