Web installer: always autoselect some DB type
authorKevin Israel <pleasestand@live.com>
Tue, 23 Apr 2013 03:15:39 +0000 (23:15 -0400)
committerKevin Israel <pleasestand@live.com>
Tue, 23 Apr 2013 03:15:39 +0000 (23:15 -0400)
commit35df568ce45479984c5a5fc55d0e3087d293d6bc
treef389c34cb1229ec806983fe181995da931998dac
parent1c3bcd07882b1e0a2c0abad5a69cd125cbb35255
Web installer: always autoselect some DB type

If the PHP mysql extension were not available, none of the DB type
radio buttons would be selected, and if the form were submitted
without selecting any of them, a PHP fatal error would occur
because of a lack of input validation.

So have the installer autoselect a DB type other than mysql if
necessary, and add a simple check to prevent a fatal error if all
radio buttons nevertheless end up deselected for some unknown reason.

Bug: 47489
Change-Id: Ic456899028c054a761d172df8ec32f6a26dc5b97
RELEASE-NOTES-1.21
includes/installer/WebInstallerPage.php