Changeset 4907

Show
Ignore:
Timestamp:
02/22/07 01:34:56 (1 year ago)
Author:
ryan
Message:

Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/xmlrpc.php

    r4411 r4907  
    533533      } 
    534534 
    535         $to_ping = $content_struct['mt_tb_ping_urls']; 
     535      $to_ping = $content_struct['mt_tb_ping_urls']; 
     536      if ( is_array($to_ping) ) 
     537        $to_ping = implode(' ', $to_ping); 
    536538 
    537539      // Do some timestamp voodoo 
     
    616618      } 
    617619 
    618         $to_ping = $content_struct['mt_tb_ping_urls']; 
    619  
     620      $to_ping = $content_struct['mt_tb_ping_urls']; 
     621      if ( is_array($to_ping) ) 
     622        $to_ping = implode(' ', $to_ping); 
     623       
    620624      $comment_status = (empty($content_struct['mt_allow_comments'])) ? 
    621625        get_settings('default_comment_status')