1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

use different syntax to caputer first element of explode() call

apparently not supported in 5.3 to get first element directly
This commit is contained in:
Klas Lindfors 2016-04-29 09:21:27 +02:00
parent 9a5a24c45f
commit ec3f7788a0

View File

@ -327,7 +327,7 @@ class SyncLib
while ($info = curl_multi_info_read($mh)) {
$handle = $info['handle'];
$server = explode("?", curl_getinfo($handle, CURLINFO_EFFECTIVE_URL))[0];
list($server) = explode("?", curl_getinfo($handle, CURLINFO_EFFECTIVE_URL));
$entry = $entries[$server];
$this->log(LOG_DEBUG, "handle indicated to be for $server.");
curl_multi_remove_handle($mh, $handle);