mod/ping - don't perform any database calls if installing
This commit is contained in:
parent
9370cca8ad
commit
b779400218
@ -43,6 +43,12 @@ function ping_init(&$a) {
|
|||||||
unset($_SESSION['sysmsg_info']);
|
unset($_SESSION['sysmsg_info']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($a->install) {
|
||||||
|
echo json_encode($result);
|
||||||
|
killme();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(get_observer_hash() && (! $result['invalid'])) {
|
if(get_observer_hash() && (! $result['invalid'])) {
|
||||||
$r = q("select cp_id, cp_room from chatpresence where cp_xchan = '%s' and cp_client = '%s' and cp_room = 0 limit 1",
|
$r = q("select cp_id, cp_room from chatpresence where cp_xchan = '%s' and cp_client = '%s' and cp_room = 0 limit 1",
|
||||||
dbesc(get_observer_hash()),
|
dbesc(get_observer_hash()),
|
||||||
|
Reference in New Issue
Block a user