aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-06 21:31:42 -0800
committerfriendica <info@friendica.com>2014-02-06 21:31:42 -0800
commitb779400218c2360a4354cfbecda620c8e24bfb87 (patch)
tree25d1f68b7f520a010ddb000493dfc4ba90e47970
parent9370cca8ada974c8700ef1ca25ef5570fe0c5e3f (diff)
downloadvolse-hubzilla-b779400218c2360a4354cfbecda620c8e24bfb87.tar.gz
volse-hubzilla-b779400218c2360a4354cfbecda620c8e24bfb87.tar.bz2
volse-hubzilla-b779400218c2360a4354cfbecda620c8e24bfb87.zip
mod/ping - don't perform any database calls if installing
-rw-r--r--mod/ping.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 4b07fee7a..b9d9a9c77 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -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()),