Changeset 1579

Show
Ignore:
Timestamp:
03/31/08 10:35:02 (5 months ago)
Author:
Neal
Message:

Fixed an undefined index in extern.php.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/extern.php

    r1552 r1579  
    151151        echo "\t".'<title type="html">'.pun_htmlencode($feed['title']).'</title>'."\r\n"; 
    152152        echo "\t".'<link rel="self" href="'.pun_htmlencode($_SERVER['SCRIPT_NAME'].($_SERVER['QUERY_STRING'] != '' ? '?'.$_SERVER['QUERY_STRING'] :'')).'"/>'."\r\n"; 
    153         echo "\t".'<updated>'.gmdate('Y-m-d\TH:i:s\Z', $feed['items'][0]['pubdate']).'</updated>'."\r\n"; 
     153        echo "\t".'<updated>'.gmdate('Y-m-d\TH:i:s\Z', count($feed['items']) ? $feed['items'][0]['pubdate'] : time()).'</updated>'."\r\n"; 
    154154 
    155155        if ($pun_config['o_show_version'] == '1')