mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed some nitpicks
This commit is contained in:
@@ -11,7 +11,7 @@ class Qrzru {
|
||||
public function session($username, $password) {
|
||||
// URL to the XML Source
|
||||
$ci = & get_instance();
|
||||
$xml_feed_url = 'https://api.qrz.ru/login?u='.$username.'&p='.urlencode($password) . '&agent=wavelog';;
|
||||
$xml_feed_url = 'https://api.qrz.ru/login?u='.$username.'&p='.urlencode($password) . '&agent=wavelog';
|
||||
|
||||
// CURL Functions
|
||||
$ch = curl_init();
|
||||
@@ -66,7 +66,7 @@ class Qrzru {
|
||||
$ci = & get_instance();
|
||||
try {
|
||||
// URL to the XML Source
|
||||
$xml_feed_url = 'https://api.qrz.ru/callsign?id=' . $key . '&callsign=' . $callsign . '';
|
||||
$xml_feed_url = 'https://api.qrz.ru/callsign?id=' . $key . '&callsign=' . $callsign . '';
|
||||
|
||||
// CURL Functions
|
||||
$ch = curl_init();
|
||||
@@ -81,7 +81,7 @@ class Qrzru {
|
||||
curl_close($ch);
|
||||
|
||||
// Create XML object
|
||||
$xml = simplexml_load_string($xml);
|
||||
$xml = simplexml_load_string($xml);
|
||||
if (!empty($xml->session->error)) {
|
||||
return $data['error'] = (string)$xml->session->error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user