Forgot to return false if add() didn't add anything.
This commit is contained in:
parent
8a02afd87a
commit
be402fab53
|
@ -246,6 +246,7 @@ class Tags implements \OCP\ITags {
|
||||||
return false;
|
return false;
|
||||||
} elseif((int)$result === 0) {
|
} elseif((int)$result === 0) {
|
||||||
\OCP\Util::writeLog('core', __METHOD__.', Tag already exists: ' . $name, \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('core', __METHOD__.', Tag already exists: ' . $name, \OCP\Util::DEBUG);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
\OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(),
|
\OCP\Util::writeLog('core', __METHOD__.', exception: '.$e->getMessage(),
|
||||||
|
|
Loading…
Reference in New Issue