some html cleanup
fix some error reporting anomolies
further on 7fe36e2e01c0b015f440fae19d2689a3a68c80f4
more 7fe36e2e01c0b015f440fae19d2689a3a68c80f4
HTML error
fix #461

The original code was needed for PHP earlier than PHP 5 in order to
insure that the value returned was an object reference. The PHP 5 "new"
operator now returns only a reference, so with PHP 5 the code is not
needed and in fact is deprecated. Since Zenphoto requires PHP 5 the cond
is now corrected to be PHP 5 compliant.
#459
Allow override of MySQLi preference
Revert setSort function in light of new approach
Merge remote-tracking branch 'origin/master' into global-sort-settings
Merge remote-tracking branch 'origin/global-sort-settings' into 1.4.6