Skip to content

Commit

Permalink
Merge pull request #795 from jeromegamez/comparison_vs_assignment
Browse files Browse the repository at this point in the history
EZP-21768: eZCollaborationItemGroupLink: Changed wrong var comparison to assignments
  • Loading branch information
yannickroger committed Jan 23, 2014
2 parents c730019 + 1378590 commit 9e9507a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kernel/classes/ezcollaborationitemgrouplink.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ static function addItem( $groupID, $collaborationID, $userID )
function fetch( $collaborationID, $groupID, $userID = false, $asObject = true )
{
if ( $userID == false )
$userID == eZUser::currentUserID();
{
$userID = eZUser::currentUserID();
}

return eZPersistentObject::fetchObject( eZCollaborationItemGroupLink::definition(),
null,
array( 'collaboration_id' => $collaborationID,
Expand All @@ -120,7 +123,10 @@ function fetch( $collaborationID, $groupID, $userID = false, $asObject = true )
function fetchList( $collaborationID, $userID = false, $asObject = true )
{
if ( $userID == false )
$userID == eZUser::currentUserID();
{
$userID = eZUser::currentUserID();
}

return eZPersistentObject::fetchObjectList( eZCollaborationItemGroupLink::definition(),
null,
array( 'collaboration_id' => $collaborationID,
Expand Down

0 comments on commit 9e9507a

Please sign in to comment.