Skip to content
Snippets Groups Projects
Unverified Commit a0e339c7 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Remove deprecated use of each()

It is deprecated as of PHP 7.2
parent 92fc9369
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class Auth_Yubico ...@@ -137,7 +137,7 @@ class Auth_Yubico
if ($this->_key <> "") { if ($this->_key <> "") {
$rows = explode("\r\n", $responseMsg); $rows = explode("\r\n", $responseMsg);
$response = array(); $response = array();
while (list(, $val) = each($rows)) { foreach ($rows as $val) {
// = is also used in BASE64 encoding so we only replace the first = by # which is not used in BASE64 // = is also used in BASE64 encoding so we only replace the first = by # which is not used in BASE64
$val = preg_replace('/=/', '#', $val, 1); $val = preg_replace('/=/', '#', $val, 1);
$row = explode("#", $val); $row = explode("#", $val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment