Fixed warning in PMA_purgeHistory.
This commit is contained in:
@@ -15,8 +15,9 @@ $Source$
|
||||
2003-05-13 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* 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 <me@supergarv.de>
|
||||
* queryframe.php3: Remove left/bottom margin to better fit the link title
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user