summaryrefslogtreecommitdiffstats
path: root/system/libraries/Xmlrpc.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2011-12-30 13:46:08 +0100
committerAndrey Andreev <narf@bofh.bg>2011-12-30 13:46:08 +0100
commitadc1175f7af1a5fa3a833f72b6f24a82b59e69c1 (patch)
tree72920829de8cd5b749f90536340f4087e6ea91fd /system/libraries/Xmlrpc.php
parent6209015edde25e8ca82a8e8f5eb5a5eda2750e7b (diff)
Replace some list(...) = each(...) expressions with current(), where only values are needed
Diffstat (limited to 'system/libraries/Xmlrpc.php')
-rw-r--r--system/libraries/Xmlrpc.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php
index 2804e6685..bb95ca145 100644
--- a/system/libraries/Xmlrpc.php
+++ b/system/libraries/Xmlrpc.php
@@ -542,7 +542,7 @@ class XML_RPC_Response
elseif ($kind == 'array')
{
reset($xmlrpc_val->me);
- list(, $b) = each($xmlrpc_val->me);
+ $b = current($xmlrpc_val->me);
$arr = array();
for ($i = 0, $size = count($b); $i < $size; $i++)
@@ -1150,8 +1150,7 @@ class XML_RPC_Message extends CI_Xmlrpc
elseif ($kind == 'array')
{
reset($param->me);
- list(, $b) = each($param->me);
-
+ $b = current($param->me);
$arr = array();
for($i = 0, $c = count($b); $i < $c; $i++)
@@ -1164,7 +1163,6 @@ class XML_RPC_Message extends CI_Xmlrpc
elseif ($kind == 'struct')
{
reset($param->me['struct']);
-
$arr = array();
while (list($key,$value) = each($param->me['struct']))
@@ -1359,8 +1357,7 @@ class XML_RPC_Values extends CI_Xmlrpc
public function scalarval()
{
reset($this->me);
- list(, $b) = each($this->me);
- return $b;
+ return current($this->me);
}