[adminer-svn] SF.net SVN: adminer:[1168] trunk/adminer/include/editing.inc.php
Database management in a single PHP file
Brought to you by:
jakubvrana
From: <jak...@us...> - 2009-10-06 10:00:37
|
Revision: 1168 http://adminer.svn.sourceforge.net/adminer/?rev=1168&view=rev Author: jakubvrana Date: 2009-10-06 10:00:23 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Allow char(0) Modified Paths: -------------- trunk/adminer/include/editing.inc.php Modified: trunk/adminer/include/editing.inc.php =================================================================== --- trunk/adminer/include/editing.inc.php 2009-10-05 09:55:26 UTC (rev 1167) +++ trunk/adminer/include/editing.inc.php 2009-10-06 10:00:23 UTC (rev 1168) @@ -114,7 +114,7 @@ function process_type($field, $collate = "COLLATE") { global $connection, $enum_length, $unsigned; return " $field[type]" - . ($field["length"] && !ereg('^date|time$', $field["type"]) ? "(" . process_length($field["length"]) . ")" : "") + . (strlen($field["length"]) && !ereg('^date|time$', $field["type"]) ? "(" . process_length($field["length"]) . ")" : "") . (ereg('int|float|double|decimal', $field["type"]) && in_array($field["unsigned"], $unsigned) ? " $field[unsigned]" : "") . (ereg('char|text|enum|set', $field["type"]) && $field["collation"] ? " $collate " . $connection->quote($field["collation"]) : "") ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |