[Phpmyadmin-devel] PMA_DBI_get_dblist()

Sebastian Mendel lists at sebastianmendel.de
Tue Sep 19 10:51:37 CEST 2006


Sebastian Mendel schrieb:
> 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

and even more, i think this two things should handled completely
independent - if i hide a single db i do not want to display all other
db's not accessible. or is there something different written in the
manual i can't find?



-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list