Changeset 1056 for trunk/picture.php
- Timestamp:
- Feb 24, 2006, 2:16:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1052 r1056 380 380 } 381 381 382 if ( $page['cat'] == 'search' ) 383 { 384 $url_up.= '&search='.$_GET['search']; 385 } 386 if ( $page['cat'] == 'list' ) 387 { 388 $url_up.= '&list='.$_GET['list']; 382 if ( isset($page['cat']) ) 383 { 384 if ( $page['cat'] == 'search' ) 385 { 386 $url_up.= '&search='.$_GET['search']; 387 } 388 if ( $page['cat'] == 'list' ) 389 { 390 $url_up.= '&list='.$_GET['list']; 391 } 389 392 } 390 393 391 394 $url_admin = 392 395 PHPWG_ROOT_PATH.'admin.php?page=picture_modify' 393 .'&cat_id='. $page['cat']396 .'&cat_id='. ( isset($page['cat']) ? $page['cat'] : '' ) 394 397 .'&image_id='.$_GET['image_id']; 395 398 … … 414 417 $result = pwg_query( $query ); 415 418 } 416 if ( !$_GET['add_fav'] and $page['cat'] == 'fav')419 if ( !$_GET['add_fav'] and isset($page['cat']) and 'fav'==$page['cat'] ) 417 420 { 418 421 if (!isset($page['previous_item']) and !isset($page['next_item'])) … … 538 541 539 542 $title_img = $picture['current']['name']; 540 if (is_numeric( $page['cat'] )) 541 { 542 $title_img = replace_space(get_cat_display_name($page['cat_name'])); 543 } 544 else if ( $page['cat'] == 'search' ) 545 { 546 $title_img = replace_search( $title_img, $_GET['search'] ); 543 if ( isset( $page['cat'] ) ) 544 { 545 if (is_numeric( $page['cat'] )) 546 { 547 $title_img = replace_space(get_cat_display_name($page['cat_name'])); 548 } 549 else if ( $page['cat'] == 'search' ) 550 { 551 $title_img = replace_search( $title_img, $_GET['search'] ); 552 } 547 553 } 548 554 $title_nb = ($page['current_rank'] + 1).'/'.$page['cat_nb_images']; … … 681 687 } 682 688 // button to set the current picture as representative 683 if ('admin' == $user['status'] and is_numeric($page['cat'])) 689 if ('admin' == $user['status'] and 690 isset($page['cat']) and is_numeric($page['cat'])) 684 691 { 685 692 $template->assign_block_vars(
Note: See TracChangeset
for help on using the changeset viewer.