Commit 31d2e980 authored by Alan Garcia's avatar Alan Garcia
Browse files

Fix #1548

parent c564af24
......@@ -95,7 +95,11 @@ for($i=0;$i<count($rdb);$i++) {
<tr>
<th><label for="dbn"><?php __("MySQL Database"); ?></label></th>
<td>
<span class="int" id="dbnpfx"><?php echo $mem->user["login"]; ?>_</span><input type="text" class="int" name="dbn" id="dbn" value="" size="20" maxlength="30" />
<?php
// Max 16 caracters for the database name if we want the mysql user to be automatically created.
$max_dbsufix_size=(16-strlen($mem->user["login"].'_'));
?>
<span class="int" id="dbnpfx"><?php echo $mem->user["login"]; ?>_</span><input type="text" class="int" name="dbn" id="dbn" value="" size="20" maxlength="<?php echo $max_dbsufix_size ;?>" />
</td>
</tr>
</table>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment