When I follow the directions for "Theming the maintenance page" (http://drupal.org/node/195435) and set
$conf['maintenance_theme'] = 'zen'; in my settings.php, then set my site 'offline' through the maintenance admin page, everything works fine.
But when I turn my database off to simulate DB failure (as suggested in the doc), I get a bunch of SQL warnings, like this:
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /x/x/x/includes/database.mysql.inc on line 321
I can't tell for sure, but is Zen creating these? Or is it something else I did? I haven't hacked anything.
BTW, if I set
$conf['maintenance_theme'] = 'minnelli'; in settings.php, no SQL warnings appear.