mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-06-26 06:29:31 +02:00
BUGFIX Adjusted Subsite::changeSubsite() to support FALSE as a argument
This commit is contained in:
parent
f789043c64
commit
c004c15e35
|
@ -261,8 +261,7 @@ JS;
|
|||
*/
|
||||
static function changeSubsite($subsite) {
|
||||
if(is_object($subsite)) $subsiteID = $subsite->ID;
|
||||
elseif(is_numeric($subsite)) $subsiteID = $subsite;
|
||||
else user_error('Subsite::changeSubsite(): Wrong format', E_USER_ERROR);
|
||||
else $subsiteID = $subsite;
|
||||
|
||||
Session::set('SubsiteID', $subsiteID);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user