tried to fix some "NULL" value problems

This commit is contained in:
Loïc Chapeaux
2001-08-27 23:26:09 +00:00
parent 47397519bd
commit 7161a08252
5 changed files with 30 additions and 6 deletions

View File

@@ -149,6 +149,13 @@ for ($i = 0 ; $i < $num_fields; $i++) {
?>
</select>
</td>
<?php
if (isset($row)
&& !isset($row['Default']) && !empty($row['Null'])) {
$row['Default'] = 'NULL';
}
echo "\n";
?>
<td>
<input type="hidden" name="field_default_orig[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo urlencode($row['Default']); ?>" />
<input type="text" name="field_default[]" size="8" value="<?php if(isset($row) && isset($row['Default'])) echo str_replace('"', '&quot;', $row['Default']); ?>" />