diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-03 17:13:18 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 14:34:23 +0100 |
commit | 4273689e9f37adadef2d514714fadcc38582b87c (patch) | |
tree | 00090ef2335449a69e2b486215b442a43b54d4ca /lib | |
parent | e3dbc3d40ccd9874dadb32b59633cb159afddc48 (diff) | |
download | nextcloud-server-4273689e9f37adadef2d514714fadcc38582b87c.tar.gz nextcloud-server-4273689e9f37adadef2d514714fadcc38582b87c.zip |
fix usage of empty
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/comments/manager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/comments/manager.php b/lib/private/comments/manager.php index bb0782c77fd..12b90a063d1 100644 --- a/lib/private/comments/manager.php +++ b/lib/private/comments/manager.php @@ -55,11 +55,11 @@ class Manager implements ICommentsManager { * @throws \UnexpectedValueException */ protected function prepareCommentForDatabaseWrite(IComment $comment) { - if( empty($comment->getActorType()) - || empty($comment->getActorId()) - || empty($comment->getObjectType()) - || empty($comment->getObjectId()) - || empty($comment->getVerb()) + if( !$comment->getActorType() + || !$comment->getActorId() + || !$comment->getObjectType() + || !$comment->getObjectId() + || !$comment->getVerb() ) { throw new \UnexpectedValueException('Actor, Object and Verb information must be provided for saving'); } @@ -430,7 +430,7 @@ class Manager implements ICommentsManager { $result = $this->update($comment); } - if($result && !empty($comment->getParentId())) { + if($result && !!$comment->getParentId()) { $this->updateChildrenInformation( $comment->getParentId(), $comment->getCreationDateTime() |