remote delegation issue when already logged in with different account on same site.

This commit is contained in:
redmatrix
2016-01-24 13:53:18 -08:00
parent ae6ae88151
commit 0db2fe6e39
3 changed files with 7 additions and 1 deletions

View File

@@ -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']);