Skip to content
Snippets Groups Projects
Commit b2129a51 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #875 from grandoc/3.3

fix undefined offset
parents 436b6259 02619568
No related branches found
No related tags found
No related merge requests found
......@@ -2217,7 +2217,7 @@ class soap_transport_http extends nusoap_base {
}
$this->use_curl = $use_curl;
preg_match('/\$Revisio' . 'n: ([^ ]+)/', $this->revision, $rev);
$this->setHeader('User-Agent', $this->title.'/'.$this->version.' ('.$rev[1].')');
if (isset($rev[1])) $this->setHeader('User-Agent', $this->title.'/'.$this->version.' ('.$rev[1].')');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment