diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-25 09:07:07 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-25 09:07:07 +0200 |
commit | e4b36f4f47e40529fd41a0b0c55a68a093f725f1 (patch) | |
tree | bc1a784e7f252ff853017455088c3b22586da54c /lib/private/Comments/Manager.php | |
parent | 61d22ff6cf54af0250a9917ab1b30a5dff1cb236 (diff) | |
download | nextcloud-server-e4b36f4f47e40529fd41a0b0c55a68a093f725f1.tar.gz nextcloud-server-e4b36f4f47e40529fd41a0b0c55a68a093f725f1.zip |
Fix user with id 0 to be able to comment
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments/Manager.php')
-rw-r--r-- | lib/private/Comments/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index e54218509dc..024dd58b89c 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -118,9 +118,9 @@ class Manager implements ICommentsManager { */ protected function prepareCommentForDatabaseWrite(IComment $comment) { if (!$comment->getActorType() - || !$comment->getActorId() + || $comment->getActorId() === '' || !$comment->getObjectType() - || !$comment->getObjectId() + || $comment->getObjectId() === '' || !$comment->getVerb() ) { throw new \UnexpectedValueException('Actor, Object and Verb information must be provided for saving'); |