Skip to content

Commit f8edb1c

Browse files
authored
check /etc/phpmyadmin/conf.d exists
/etc/phpmyadmin/conf.d need to check whether /etc/phpmyadmin/conf.d exists
1 parent a03d55e commit f8edb1c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config.inc.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@
161161
}
162162

163163
/* Support additional configurations */
164-
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename)
165-
{
166-
include($filename);
164+
if(is_dir('/etc/phpmyadmin/conf.d')) {
165+
foreach (glob('/etc/phpmyadmin/conf.d/*.php') as $filename) {
166+
include($filename);
167+
}
167168
}

0 commit comments

Comments
 (0)