Parse better enum fields (bug #784154).

This commit is contained in:
Michal Čihař
2003-08-06 13:02:59 +00:00
parent 5e5d35dfae
commit 481b072e5f
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-08-06 Michal Cihar <nijel@users.sourceforge.net>
* libraries/common.lib.php3: Parse better enum fields (bug #784154).
2003-08-05 Garvin Hicking <me@supergarv.de>
* libraries/common.lib.php3: Moved docu function (PHP3 compatbility)
(Bug #782966)

View File

@@ -1600,7 +1600,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
*/
function PMA_getEnumSetOptions($type_def) {
$open = strpos($type_def, '(');
$close = strpos($type_def, ')');
$close = strrpos($type_def, ')');
if (!$open || !$close) {
return FALSE;
}