[Phpmyadmin-devel] PMA_DBI_get_dblist()

Sebastian Mendel lists at sebastianmendel.de
Tue Sep 19 10:38:41 CEST 2006


Hi,


if (PMA_MYSQL_INT_VERSION < 40002 ||
!empty($GLOBALS['cfg']['Server']['hide_db'])) {

if the above comes true every DB is checked with 'USE dB' for access,
Why?

Why should this check run if i have MySQL >= 4.0.2?

at least, shouldn't it be written with && instead of ||:

if (PMA_MYSQL_INT_VERSION < 40002 &&
!empty($GLOBALS['cfg']['Server']['hide_db'])) {

so that the db-list gets only checked if MySQL < 4.0.2 AND the
hide_db-list is empty


-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list