Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
update system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Sep 2006 at 22:02 UTC
Updated:
22 Sep 2006 at 23:15 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| update_php-no_bogus_warning.patch.txt | 759 bytes | dww |
Comments
Comment #1
webchickTested, works. RTBC.
Comment #2
drummCommitted to HEAD.
Comment #3
(not verified) commented