[wp-trac] [WordPress Trac] #2675: Error when upgrading with no
links/bookmarks
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 20 19:01:14 GMT 2006
#2675: Error when upgrading with no links/bookmarks
-----------------------+----------------------------------------------------
Id: 2675 | Status: new
Component: General | Modified: Thu Apr 20 19:01:14 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: anonymous | Reporter: ryanscheuermann
-----------------------+----------------------------------------------------
When upgrading using the latest trunk code, I get this error because I
have no links in my current DB:
{{{
Warning: Invalid argument supplied for foreach() in wp-admin\upgrade-
functions.php on line 525
}}}
It does a foreach without checking if $links is null:
{{{
$links = $wpdb->get_results("SELECT link_id, link_category
FROM $wpdb->links");
foreach ( $links as $link ) {
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/2675>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list