Plugin Directory

Changeset 1592650


Ignore:
Timestamp:
02/09/2017 05:10:06 PM (9 years ago)
Author:
rogodessa
Message:

Fixed get hash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bouncehelp/trunk/includes/admin.functions.php

    r1592630 r1592650  
    116116            if(!empty($sitesResult['websites'])){
    117117                $site = ''; $hash = '';
     118           
    118119                foreach($sitesResult['websites'] as $k=>$site){
    119120                    if(strpos($site['name'], str_replace('www.', '', $_SERVER['HTTP_HOST']))){
     121                        update_option( 'bouncehelp_api_sid', $site["hash"] );
    120122                        $site = $site['name'];
    121                         $hash = $site['hash'];
    122123                    }
    123124                    else continue;
    124125                }
    125126               
    126                 if(!empty($site) && !empty($hash)) {
     127                if(!empty($site)) {
    127128                   
    128                     update_option( 'bouncehelp_api_sid', $hash );
    129129                    $result = json_encode(array("status"=>"success","message"=>"You have successfully signed. The website is successfully connected."));
    130130                   
Note: See TracChangeset for help on using the changeset viewer.