diff --git a/ChangeLog b/ChangeLog index 5ca28b75a..3d75659d4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,8 +15,9 @@ $Source$ 2003-05-13 Michal Cihar * left.php3: Fixed displaying of tables with quote in name. * main.php3: $pma_uri_parts['scheme'] might be sometimes unset... - * tbl_move_copy.php3: Check for same table and db name when moving (RFE - #734985). + * tbl_move_copy.php3, lang/: Check for same table and db name when moving + (RFE #734985). + * libraries/relation.lib.php3: Fixed warning in PMA_purgeHistory. 2003-05-12 Garvin Hicking * queryframe.php3: Remove left/bottom margin to better fit the link title diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index e05216cf3..4f888cfed 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -546,7 +546,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ $i = 0; $row = @PMA_mysql_fetch_array($purge_rs); - if (is_array($row) && $row[0] > 0) { + if (is_array($row) && isset($row[0]) && $row[0] > 0) { $maxtime = $row[0]; $remove_rs = PMA_query_as_cu('DELETE FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE timevalue <= ' . $maxtime); }