bug 574637

This commit is contained in:
Marc Delisle
2002-07-06 11:40:52 +00:00
parent 64c9f201c1
commit a8b03f86a1
2 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2002-07-06 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_structure.php3: undefined variable
* pdf_pages.php3: bug 574637 undefined index
2002-07-05 Alexander M. Turek <rabus@users.sourceforge.net>
* header.inc.php3: Tried to fix bug #571409 (Zend Accelerator problems).

View File

@@ -68,7 +68,7 @@ if ($cfgRelation['pdfwork']){
' AND pdf_page_number = '.$chpage;
$test_rs = PMA_query_as_cu($test_query);
if(mysql_num_rows($test_rs)>0){
if($arrvalue['delete'] == 'y'){
if(isset($arrvalue['delete']) && $arrvalue['delete'] == 'y'){
$ch_query = 'DELETE FROM '.PMA_backquote($cfgRelation['table_coords'])
. ' WHERE db_name = \'' . $db . '\''
. ' AND table_name = \''.$arrvalue['name'] . '\''
@@ -120,7 +120,9 @@ if ($cfgRelation['pdfwork']){
<?php
while ($curr_page = @PMA_mysql_fetch_array($page_rs)) {
echo '<option value="'.$curr_page['page_nr'].'"';
if($chpage==$curr_page['page_nr']){echo ' selected="selected"';}
if (isset($chpage) && $chpage==$curr_page['page_nr']) {
echo ' selected="selected"';
}
echo '>';
echo $curr_page['page_nr'] . ': '.$curr_page['page_descr'].'</option>';
}