silverstripe/silverstripe-subsites — pull request #126 by mateusz (2013-11-26 00:02:51+00:00)
Title: Do not change the session-stored subsite, if session is not enabled.

This causes issues with Security::findAnAdmistrator which incorrectly
forces the current session-stored subsite to 0 - it uses
Subsite::currentSubsiteID before the session support is enabled, and
hence obtains wrong value.