Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

Commit 10c11f9

Browse files
committed
Update TeraWurfl.php
1 parent 400371c commit 10c11f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ public static function getFromRequest($request, array $config)
8383
*/
8484
public static function getAllCapabilities(TeraWurfl $wurflObj)
8585
{
86-
8786
foreach ($wurflObj->capabilities as $group) {
8887
if (!is_array($group)) {
8988
continue;
9089
}
91-
while (list ($key, $value) = each($group)) {
90+
91+
foreach ($group as $key => $value) {
9292
if (is_bool($value)) {
9393
// to have the same type than the official WURFL API
9494
$features[$key] = ($value ? 'true' : 'false');

0 commit comments

Comments
 (0)