aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 9d80eedb4..d6c02ecc0 100755
--- a/boot.php
+++ b/boot.php
@@ -1553,6 +1553,10 @@ function goaway($s) {
* @return int|bool account_id or false
*/
function get_account_id() {
+
+ if(intval($_SESSION['account_id']))
+ return intval($_SESSION['account_id']);
+
if(get_app()->account)
return intval(get_app()->account['account_id']);