diff --git a/ChangeLog b/ChangeLog index 63e362e5a..33b140781 100755 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ $Source$ * tbl_properties_export.php: Generate better query for multi row export. * tbl_row_delete.php, lang/*: Handle situation, where user didn't select anything, display DROP query on better place (bellow tabs). + * libraries/common.lib.php: Show refresh link only for SELECT and SHOW + queries. 2004-05-12 Marc Delisle * db_details_structure.php: bug #951143, undefined $header_url_qry diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 93e501af4..486fb33e9 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1553,8 +1553,10 @@ if (typeof(document.getElementById) != 'undefined' } //show as php // Refresh query - if (TRUE || (isset($cfg['SQLQuery']['Refresh']) - && $cfg['SQLQuery']['Refresh'])) { + if (isset($cfg['SQLQuery']['Refresh']) + && $cfg['SQLQuery']['Refresh'] + && preg_match('@^(SELECT|SHOW)[[:space:]]+@i', $local_query)) { + $refresh_link = ' [