bug 824958 bookmarks not configured
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
||||
|
||||
2003-10-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* browse_foreigners.php3: bug 825473: PMA_jsFormat() needed on alert()
|
||||
* tbl_query_box.php3, libraries/bookmark.lib.php3:
|
||||
bug 824958: bookmarks not configured
|
||||
|
||||
2003-10-16 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* libraries/zip.lib.php3: Calculate offset progressively (patch #824122).
|
||||
|
@@ -91,6 +91,11 @@ if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
|
||||
*/
|
||||
function PMA_queryBookmarks($db, $cfgBookmark, $id, $id_field = 'id')
|
||||
{
|
||||
|
||||
if (empty($cfgBookmark['db']) || empty($cfgBookmark['table'])) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$query = 'SELECT query FROM ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table'])
|
||||
. ' WHERE dbase = \'' . PMA_sqlAddslashes($db) . '\''
|
||||
. ' AND (user = \'' . PMA_sqlAddslashes($cfgBookmark['user']) . '\''
|
||||
|
@@ -346,7 +346,14 @@ if (!isset($is_inside_querywindow) || (isset($is_inside_querywindow) && $is_insi
|
||||
<input type="submit" name="SQL" value="<?php echo $strGo; ?>" />
|
||||
</td>
|
||||
<?php
|
||||
if (!isset($is_inside_querywindow) || isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && $querydisplay_tab != 'history') {
|
||||
if ( $cfg['Bookmark']['db']
|
||||
&& $cfg['Bookmark']['table']
|
||||
&& (!isset($is_inside_querywindow)
|
||||
|| ( isset($is_inside_querywindow)
|
||||
&& $is_inside_querywindow == TRUE
|
||||
&& isset($querydisplay_tab)
|
||||
//&& $querydisplay_tab != 'history'))) {
|
||||
&& $querydisplay_tab == 'sql'))) {
|
||||
?>
|
||||
<td valign="top">
|
||||
<input type="submit" name="SQLbookmark" value="<?php echo $strGo . ' & ' . $strBookmarkThis; ?>" />
|
||||
|
Reference in New Issue
Block a user