Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure that the session actually contains a slave connection befor…
…e trying to use it. Fixes bug #12305
  • Loading branch information
perlDreamer committed May 28, 2012
1 parent 45d7c55 commit fd4b75b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -16,6 +16,7 @@
- fixed #12353: Dataform List mode
- fixed #12364: Site export loses session info
- fixed #12345: tickets in trash still show up
- fixed #12305: dbSlave breaks WebGUI when not able to connect

7.10.24
- fixed #12318: asset error causes asset manager to fail
Expand Down
6 changes: 2 additions & 4 deletions lib/WebGUI/Session.pm
Expand Up @@ -232,12 +232,10 @@ sub dbSlave {
$self->{_slave} = WebGUI::SQL->connect($self, $slave->{dsn},$slave->{user},$slave->{pass});
}
}
if (!exists $self->{_slave}) {
return $self->db;
}
else {
if (exists $self->{_slave} && $self->{_slave}) {
return $self->{_slave};
}
return $self->db;
}


Expand Down

0 comments on commit fd4b75b

Please sign in to comment.