[Phpmyadmin-devel] $sql_query not initilized
Marc.Delisle at cegepsherbrooke.qc.ca
Sat Mar 31 14:27:29 CEST 2007
Jürgen Wind a écrit :
> Marc Delisle wrote:
>> Sebastian Mendel a écrit :
>>> i am not sure, but was/is there any reason why $sql_query is not always
>>> properly initilized? or is it just missing?
>>> i think it should happen in common.inc.php on line #429
>>> with $GLOBALS['sql_query'] = '';
>>> like it is done with $GLOBALS['db'] and $GLOBALS['table'] some lines
>> Sounds to me like it is missing indeed.
> common.lib.php revision 10231:
> strlen($GLOBALS['sql_query']) && $GLOBALS['sql_query'] == 'TRUNCATE TABLE '
> strlen is always >0 if $GLOBALS['sql_query'] == 'TRUNCATE TABLE '
> so "strlen($GLOBALS['sql_query']) &&" is not needed here or did i overlook
Right, I'll remove it.
More information about the Developers