Merge pull request #7783 from emteknetnz/emteknetnz-member-id-cast

Ensure currentUserID() returns an int
This commit is contained in:
Damian Mooyman 2018-01-23 18:18:28 +13:00 committed by GitHub
commit 83de0a0d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -894,7 +894,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
$id = Session::get("loggedInAs"); $id = Session::get("loggedInAs");
} }
return is_numeric($id) ? $id : 0; return is_numeric($id) ? (int) $id : 0;
} }
private static $_already_tried_to_auto_log_in = false; private static $_already_tried_to_auto_log_in = false;