summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 7be2b5d40..896eb9216 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -64,7 +64,7 @@ int db_mysql_init()
* If missing disable MySQL to avoid any problems.
*/
- if (!MysqlName || !MysqlUser) {
+ if ((do_mysql) && (!MysqlName || !MysqlUser)) {
do_mysql = 0;
alog("MySQL Error: Set all required configuration options.");
}