From 2a53725e8bc151ad8bcc5dc9ab73001892e9e60b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 1 Nov 2003 16:32:36 +0000 Subject: [PATCH] bug 826880 --- ChangeLog | 3 +++ libraries/relation.lib.php3 | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b71419ee4..02cd5e6dd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-11-01 Marc Delisle + * libraries/relation.lib.php3: bug 826880, quotes added + 2003-10-31 Marc Delisle * lang/romanian: Updated, thanks to Valics Lehel. * tbl_relation.php3: add backquotes around table and field names diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index 518c84ebd..f18b272b1 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -587,7 +587,9 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ 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); + // quotes added around $maxtime to prevent a difficult to + // reproduce problem + $remove_rs = PMA_query_as_cu('DELETE FROM ' . PMA_backquote($cfgRelation['history']) . ' WHERE timevalue <= "' . $maxtime . '"'); } return true;