* optimized a bit and added some comments

* fixed a js error ("#" character msut be escaped)
This commit is contained in:
Loïc Chapeaux
2001-09-02 13:11:32 +00:00
parent e5e44a7e2c
commit c6bd9d9d85
2 changed files with 70 additions and 67 deletions

View File

@@ -293,10 +293,16 @@ else {
}
}
// Defines wether to display the full/partial text button or not
$show_text_btn = FALSE;
// Gets the list of fields properties
while ($field = mysql_fetch_field($result)) {
if (eregi('BLOB', $field->type)) {
$fields_meta[] = $field;
}
$fields_cnt = count($fields_meta);
// Defines wether to display the full/partial text button or not
$show_text_btn = FALSE;
for ($i = 0; $i < $fields_cnt; $i++) {
if (eregi('BLOB', $fields_meta[$i]->type)) {
$show_text_btn = TRUE;
if ($display == 'simple' || $display == 'bkmOnly') {
break;
@@ -304,7 +310,7 @@ else {
}
// loic1: maybe the fix for the second alias bug?
if (($display != 'simple' && $display != 'bkmOnly')
&& $field->table == '') {
&& $fields_meta[$i]->table == '') {
$display = 'simple';
}
} // end while