Fixed GUID string comparisons (eq instead of ==)
This commit is contained in:
parent
280e902c09
commit
f3c3bfb4dc
4 changed files with 4 additions and 4 deletions
|
|
@ -1343,7 +1343,7 @@ sub www_sendMessageSave {
|
|||
my $user = WebGUI::User->new($session, $uid);
|
||||
|
||||
# Sender only gets CCd on inbox message (not real email)
|
||||
my $isSender = $uid == $session->user->userId;
|
||||
my $isSender = $uid eq $session->user->userId;
|
||||
$messageOptions->{no_email} = 1 if $isSender;
|
||||
|
||||
# Optionally set SMS notification details (excluding sender)
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ sub canView {
|
|||
my $album = $self->getParent;
|
||||
return 0 unless $album->canView($userId);
|
||||
|
||||
if ($self->isFriendsOnly && $userId != $self->get("ownerUserId") ) {
|
||||
if ($self->isFriendsOnly && $userId ne $self->get("ownerUserId") ) {
|
||||
my $owner = WebGUI::User->new( $self->session, $self->get("ownerUserId") );
|
||||
return 0
|
||||
unless WebGUI::Friends->new($self->session, $owner)->isFriend($userId);
|
||||
|
|
|
|||
|
|
@ -2217,7 +2217,7 @@ sub canTakeSurvey {
|
|||
my $userId = $self->session->user->userId();
|
||||
my $takenCount = 0;
|
||||
|
||||
if ( $userId == 1 ) {
|
||||
if ( $userId eq 1 ) {
|
||||
$takenCount = $self->takenCount( { ipAddress => $ip });
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ sub process {
|
|||
# Calculate the total number of active users
|
||||
$var{'total'} = $var{'members'} + $var{'visitors'};
|
||||
# Set some flags
|
||||
$var{'isVisitor'} = 1 if ($session->user->userId == 1);
|
||||
$var{'isVisitor'} = 1 if ($session->user->userId eq 1);
|
||||
$var{'hasMembers'} = 1 if $var{'member_loop'};
|
||||
|
||||
# Assign labels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue