diff --git a/ChangeLog b/ChangeLog index 5ec4cad41..7608bd34e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $Source$ * main.php3, lines 11-13: new fix against bug #571409 (it doesn't work properly with Zend Accelerator). * libraries/relation.lib.php3, lines 70 & 79: PHP3 fix. + * libraries/display_tbl.lib.php3: fixed warnings. 2002-09-12 Marc Delisle * libraries/display_tbl.lib.php3: bug 601809: when two fields have the diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 860cf775f..5c8476d18 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -474,7 +474,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells . '&goto=' . $goto - . '&dontlimitchars=' . (($dontlimitchars) ? 0 : 1); + . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); // ... before the result table if (($is_display['edit_lnk'] == 'nn' && $is_display['del_lnk'] == 'nn') @@ -618,7 +618,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells - . '&dontlimitchars=' . $dontlimitchars + . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1) . '&sql_query=' . urlencode($sorted_sql_query); // 2.1.5 Displays the sorting url @@ -924,7 +924,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells - . '&dontlimitchars=' . $dontlimitchars; + . '&dontlimitchars=' . (empty($dontlimitchars) ? 0 : 1); // 1.2.1 Modify link(s) if ($is_display['edit_lnk'] == 'ur') { // update row case @@ -1011,7 +1011,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ // the default second parameter of // mysql_fetch_array() is MYSQL_BOTH, so we always get // associative and numeric indices? - + //if (!isset($row[$meta->name]) if (!isset($row[$pointer]) || (function_exists('is_null') && is_null($row[$pointer]))) {