if you run update.php in HEAD when there are no updates available, you get the following:

warning: reset(): Passed variable is not an array or object in /Users/wright/drupal/cvs/head/core.cvs/update.php on line 424.

attached is a small patch to fix this.

potentially, we should do something much smarter if the user clicks "update" when there are no available updates (e.g. not hit the entire progress bar code path, the JS, etc, etc, and just immediately go to the finished page with a message about "no updates were performed"). however, that would involve a much bigger patch, and i wanted to keep this small.

CommentFileSizeAuthor
update_php-no_bogus_warning.patch.txt759 bytesdww

Comments

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Tested, works. RTBC.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)