Patch #3712 » RedmineAdvanced-sqlite.diff
redmine/RedmineAdvanced.pm 2009-10-28 21:21:07.000000000 +0100 | ||
---|---|---|
368 | 368 |
$dbh->disconnect(); |
369 | 369 | |
370 | 370 |
if ( defined $ret ) { |
371 |
return ( $ret ? 1 : 0 );
|
|
371 |
return ( ($ret eq 1 || $ret eq "t") ? 1 : 0 );
|
|
372 | 372 |
} |
373 | 373 |
else { |
374 | 374 |
return -1; #project doesn't exist |
... | ... | |
462 | 462 |
$sthldap->execute($auth_source_id); |
463 | 463 |
while ( my @rowldap = $sthldap->fetchrow_array ) { |
464 | 464 |
my $ldap = Authen::Simple::LDAP->new( |
465 |
host => ( $rowldap[2] == 1 || $rowldap[2] eq "t" )
|
|
465 |
host => ( $rowldap[2] eq 1 || $rowldap[2] eq "t" )
|
|
466 | 466 |
? "ldaps://$rowldap[0]" |
467 | 467 |
: $rowldap[0], |
468 | 468 |
port => $rowldap[1], |