undefined variable

This commit is contained in:
Alexander M. Turek
2003-08-27 15:34:39 +00:00
parent 96129853e6
commit 7fddcbf2d6
2 changed files with 11 additions and 6 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-08-27 Alexander M. Turek <rabus@users.sourceforge.net>
* browse_foreigners.php3: undefined variable.
2003-08-26 Alexander M. Turek <rabus@users.sourceforge.net> 2003-08-26 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3: Backwards compatibility. * libraries/common.lib.php3: Backwards compatibility.
* tbl_change.php3: bug #795171 (foreign field empty when editing record). * tbl_change.php3: bug #795171 (foreign field empty when editing record).

View File

@@ -149,15 +149,17 @@ if (isset($disp) && $disp) {
echo $header; echo $header;
$count = -1; $count = -1;
} }
$key_equals_data = isset($data) && $key == $data;
?> ?>
<tr> <tr>
<td nowrap="nowrap" bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key == $data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . htmlspecialchars($key) . '</a>' . ($key == $data ? '</b>' : ''); ?></td> <td nowrap="nowrap" bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key_equals_data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . htmlspecialchars($key) . '</a>' . ($key_equals_data ? '</b>' : ''); ?></td>
<td bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key == $data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . $value . '</a>' . ($key == $data ? '</b>' : ''); ?></td> <td bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key_equals_data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . $value . '</a>' . ($key_equals_data ? '</b>' : ''); ?></td>
<td width="20%"><img src="images/spacer.gif" alt="" width="1" height="1"></td> <td width="20%"><img src="images/spacer.gif" alt="" width="1" height="1"></td>
<td bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key == $data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . $value . '</a>' . ($key == $data ? '</b>' : ''); ?></td> <td bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key_equals_data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . $value . '</a>' . ($key_equals_data ? '</b>' : ''); ?></td>
<td nowrap="nowrap" bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key == $data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . htmlspecialchars($key) . '</a>' . ($key == $data ? '</b>' : ''); ?></td> <td nowrap="nowrap" bgcolor="<?php echo $bgcolor; ?>"><?php echo ($key_equals_data ? '<b>' : '') . '<a href="#" title="' . $strUseThisValue . ($vtitle != '' ? ': ' . $vtitle : '') . '" onclick="formupdate(\'' . md5($field) . '\', \'' . htmlspecialchars($key) . '\'); return false;">' . htmlspecialchars($key) . '</a>' . ($key_equals_data ? '</b>' : ''); ?></td>
</tr> </tr>
<?php <?php
unset($key_equals_data);
} // end while } // end while
} }