Plugin Directory

Changeset 556984


Ignore:
Timestamp:
06/12/2012 11:25:54 PM (14 years ago)
Author:
cogmios
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-favicons/trunk/includes/client/class-xmlrpc.php

    r555592 r556984  
    6060                       
    6161            // see: http://php.net/manual/en/function.xmlrpc-encode-request.php
    62             $request = xmlrpc_encode_request(
     62            // note that this has to be installed! ( --with-xmlrpc )
     63            $request = \xmlrpc_encode_request(
    6364                $namespace . '.' . $method
    6465                , array($blogid, $usr, $pwd,
     
    114115                            if (array_key_exists('body',$response))
    115116                            {
    116                                
     117                                $return_content = xmlrpc_decode($response['body'], $charset);
    117118                                if(is_array(xmlrpc_decode($response['body'], $charset)))
    118119                                {
    119                                     echo "Error:";
    120                                     $return_content = xmlrpc_decode($response['body'], $charset);
     120                                    echo "Error:";                                 
    121121                                    print_r($return_content);
     122                                    $return_content = $content;
    122123                                }
    123                                 else
     124                                elseif(trim($return_content) == '')
    124125                                {
    125                                     $return_content = xmlrpc_decode($response['body'], $charset);
    126                                 }
     126                                    $return_content = $content;
     127                                }                               
    127128                            }
    128129                            else
Note: See TracChangeset for help on using the changeset viewer.