Browse files

Merge pull request #1854 from tocaibiza/develop

Bug-fix in XML-RPC library [ci skip]
  • Loading branch information...
2 parents 0af0258 + 740480a commit 4a1b4188cc4f6ff69a6502a10ee97c50f3eaebdd @narfbg narfbg committed Oct 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 system/libraries/Xmlrpc.php
View
8 system/libraries/Xmlrpc.php 100644 → 100755
@@ -1317,15 +1317,15 @@ public function __construct($val = -1, $type = '')
{
$type = $type === '' ? 'string' : $type;
- if ($this->xmlrpcTypes[$type] === 1)
+ if ($this->xmlrpcTypes[$type] == 1)
{
$this->addScalar($val,$type);
}
- elseif ($this->xmlrpcTypes[$type] === 2)
+ elseif ($this->xmlrpcTypes[$type] == 2)
{
$this->addArray($val);
}
- elseif ($this->xmlrpcTypes[$type] === 3)
+ elseif ($this->xmlrpcTypes[$type] == 3)
{
$this->addStruct($val);
}
@@ -1351,7 +1351,7 @@ public function addScalar($val, $type = 'string')
return 0;
}
- if ($typeof !== 1)
+ if ($typeof != 1)
{
echo '<strong>XML_RPC_Values</strong>: not a scalar type (${typeof})<br />';
return 0;

0 comments on commit 4a1b418

Please sign in to comment.