Forgot to return false if add() didn't add anything.

This commit is contained in:
Thomas Tanghus 2013-09-23 13:29:21 +02:00
parent 0b4de847a9
commit 93258e1170

View 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(),