aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/admin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 76decae09..01296bd29 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -484,9 +484,9 @@ function admin_page_hubloc_post(&$a){
$m = zot_build_packet($a->get_channel(),'ping');
$r = zot_zot($hublocurl,$m);
//handle results and set the hubloc flags in db to make results visible
- $r2 = $r[body];
- $r3 = $r2[success];
- if ( $r3[success] == True ){
+ $r2 = $r['body'];
+ $r3 = $r2['success'];
+ if ( $r3['success'] == True ){
//set HUBLOC_OFFLINE to 0
logger(' success = true ',LOGGER_DEBUG);
} else {