[mythtv] Mythweb db_ settings

Chris Petersen lists at forevermore.net
Mon Nov 7 02:19:58 EST 2005


> Jumping in... I had a similar issue but the problem wasn't the
> AllowOverride, for me the following statement in the init.php was the
> culprit:
> // No database connection info defined?
>     if (empty($_SERVER['db_server']) || empty($_SERVER['db_name'])
>             || empty($_SERVER['db_login']) || empty($_SERVER['db_password'])) {
>         require_once 'templates/_db_vars_error.php';
>         exit;
>     }
> 
> Shouldn't the condition be AND and not OR? Depending on the DB setup,
> one might have empty strings in some of the variables. I changed the
> "||" to "&&" and everything is fine again.

I guess technically, it could be blank for the password...  just never 
occurred to me that someone would be running a database without a 
password.  The other variables are needed, though.  Will commit a fix in 
a sec.

-Chris


More information about the mythtv-dev mailing list