Update api.socialhub.php
This commit is contained in:
parent
21a9d9b126
commit
c05d72c280
|
@ -111,8 +111,9 @@ try {
|
||||||
} else {
|
} else {
|
||||||
$hauth_adapter = $hauth->getAdapter($provider);
|
$hauth_adapter = $hauth->getAdapter($provider);
|
||||||
}
|
}
|
||||||
|
$session_flag = true;
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
// nothing
|
$hauth_adapter = $hauth->authenticate($provider);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$session_flag) {
|
if(!$session_flag) {
|
||||||
|
@ -157,3 +158,5 @@ switch($action) {
|
||||||
show_errors();
|
show_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo json_encode($context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user