Project

General

Profile

« Previous | Next » 

Revision e59b9382

Added by Balázs Váradi over 5 years ago

Fix formatting and remove empty strings

View differences:

src/etc/inc/dyndns.class
799 799

  
800 800
					curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
801 801

  
802
					if(strpos($this->_dnsUser, '@') !== false){
802
					if (strpos($this->_dnsUser, '@') !== false) {
803 803
						curl_setopt($ch, CURLOPT_HTTPHEADER, array(
804
							'X-Auth-Email: '.$this->_dnsUser.'',
805
							'X-Auth-Key: '.$this->_dnsPass.'',
804
							'X-Auth-Email: '.$this->_dnsUser,
805
							'X-Auth-Key: '.$this->_dnsPass,
806 806
							'Content-Type: application/json'
807 807
						));
808 808

  
......
813 813
						$zone = $output->result[0]->id;
814 814
					} else {
815 815
						curl_setopt($ch, CURLOPT_HTTPHEADER, array(
816
							'Authorization: Bearer '.$this->_dnsPass.'',
816
							'Authorization: Bearer '.$this->_dnsPass,
817 817
							'Content-Type: application/json'
818 818
						));
819 819

  

Also available in: Unified diff