﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
11490	Notice: Undefined offset: 0  in link-manager.php	ShaneF		"
== The Problem ==
I was working on a new WordPress design and I set the very first post to Jan, 1, 2010, 12:00am and when previewing the file I got this error:
{{{
Notice: Undefined offset: 0 in /home/xxxx/public_html/wordpress/wp-includes/link-template.php on line 1117
}}}

== What happens... ==

{{{
$post = $posts[0];
}}}

is still being set even ''if'' $posts might be empty. Moving the check to see if $posts is empty instead of $post fixes the issue nicely.
"	defect (bug)	closed	normal	3.0	Warnings/Notices	2.9	normal	fixed	has-patch commit	
