Project

General

Profile

Patch #3712 » RedmineAdvanced-sqlite.diff

Fix sqlite compatibility - Lluís Vilanova, 2009-10-28 21:18

View differences:

redmine/RedmineAdvanced.pm 2009-10-28 21:21:07.000000000 +0100
$dbh->disconnect();
if ( defined $ret ) {
return ( $ret ? 1 : 0 );
return ( ($ret eq 1 || $ret eq "t") ? 1 : 0 );
}
else {
return -1; #project doesn't exist
......
$sthldap->execute($auth_source_id);
while ( my @rowldap = $sthldap->fetchrow_array ) {
my $ldap = Authen::Simple::LDAP->new(
host => ( $rowldap[2] == 1 || $rowldap[2] eq "t" )
host => ( $rowldap[2] eq 1 || $rowldap[2] eq "t" )
? "ldaps://$rowldap[0]"
: $rowldap[0],
port => $rowldap[1],
(4-4/5)