mod/ping - don't perform any database calls if installing

This commit is contained in:
friendica 2014-02-06 21:31:42 -08:00
parent 9370cca8ad
commit b779400218

View File

@ -43,6 +43,12 @@ function ping_init(&$a) {
unset($_SESSION['sysmsg_info']);
}
if($a->install) {
echo json_encode($result);
killme();
}
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",
dbesc(get_observer_hash()),