summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Cocaro <martin.cocaro@gmail.com>2015-06-17 14:59:20 -0700
committerMartin Cocaro <martin.cocaro@gmail.com>2015-06-17 14:59:20 -0700
commitbd842cac68dcc308f2883cbc313411b44f9a9f21 (patch)
tree3772084bf61e8f2c15d2baaf3b37fdb1f17ed288
parent25253be6872358440522702a1fe45c3ac4b653c6 (diff)
downloadphp-jwt-bd842cac68dcc308f2883cbc313411b44f9a9f21.zip
php-jwt-bd842cac68dcc308f2883cbc313411b44f9a9f21.tar.gz
php-jwt-bd842cac68dcc308f2883cbc313411b44f9a9f21.tar.bz2
Adding array_values only
-rw-r--r--Authentication/JWT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php
index 9c37539..6efa30d 100644
--- a/Authentication/JWT.php
+++ b/Authentication/JWT.php
@@ -132,7 +132,7 @@ class JWT
$header['kid'] = $keyId;
}
if ( isset($head) && is_array($head) ) {
- array_push($header, $head);
+ array_push($header, array_values($head));
}
$segments = array();
$segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header));