| @@ -374,8 +374,11 @@ | ||
| 374 | 374 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>"> | 
| 375 | 375 |  									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?> | 
| 376 | 376 | </a> | 
| 377 | - <?php else : ?> | |
| 378 | - <?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 377 | +							<?php else { | |
| 378 | + : ?> | |
| 379 | + <?= $enc->html( $refId ); | |
| 380 | +} | |
| 381 | +?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 379 | 382 | <?php endif; ?> | 
| 380 | 383 | </td> | 
| 381 | 384 | <?php endif; ?> | 
| @@ -374,8 +374,11 @@ | ||
| 374 | 374 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>"> | 
| 375 | 375 |  									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?> | 
| 376 | 376 | </a> | 
| 377 | - <?php else : ?> | |
| 378 | - <?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 377 | +							<?php else { | |
| 378 | + : ?> | |
| 379 | + <?= $enc->html( $refId ); | |
| 380 | +} | |
| 381 | +?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 379 | 382 | <?php endif; ?> | 
| 380 | 383 | </td> | 
| 381 | 384 | <?php endif; ?> | 
| @@ -374,8 +374,11 @@ | ||
| 374 | 374 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>"> | 
| 375 | 375 |  									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?> | 
| 376 | 376 | </a> | 
| 377 | - <?php else : ?> | |
| 378 | - <?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 377 | +							<?php else { | |
| 378 | + : ?> | |
| 379 | + <?= $enc->html( $refId ); | |
| 380 | +} | |
| 381 | +?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>) | |
| 379 | 382 | <?php endif; ?> | 
| 380 | 383 | </td> | 
| 381 | 384 | <?php endif; ?> | 
| @@ -87,9 +87,12 @@ | ||
| 87 | 87 | <div class="item-actions"> | 
| 88 | 88 | <?php if( isset( $this->itemData ) ) : ?> | 
| 89 | 89 | <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> | 
| 90 | - <?php else : ?> | |
| 90 | +			<?php else { | |
| 91 | + : ?> | |
| 91 | 92 | <span class="placeholder"> </span> | 
| 92 | - <?php endif; ?> | |
| 93 | + <?php endif; | |
| 94 | +} | |
| 95 | +?> | |
| 93 | 96 | </div> | 
| 94 | 97 | </nav> | 
| 95 | 98 | |
| @@ -442,9 +442,12 @@ | ||
| 442 | 442 |  	{ | 
| 443 | 443 | $manager = \Aimeos\MShop::create( $this->getContext(), 'service' ); | 
| 444 | 444 | |
| 445 | -		try { | |
| 445 | + try | |
| 446 | +		{ | |
| 446 | 447 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); | 
| 447 | -		} catch( \Aimeos\MShop\Exception $e ) { | |
| 448 | + } | |
| 449 | + catch( \Aimeos\MShop\Exception $e ) | |
| 450 | +		{ | |
| 448 | 451 | return []; | 
| 449 | 452 | } | 
| 450 | 453 | } | 
| @@ -434,9 +434,12 @@ | ||
| 434 | 434 |  	{ | 
| 435 | 435 | $manager = \Aimeos\MShop::create( $this->getContext(), 'coupon' ); | 
| 436 | 436 | |
| 437 | -		try { | |
| 437 | + try | |
| 438 | +		{ | |
| 438 | 439 | return $manager->getProvider( $item, '' )->getConfigBE(); | 
| 439 | -		} catch( \Aimeos\MShop\Exception $e ) { | |
| 440 | + } | |
| 441 | + catch( \Aimeos\MShop\Exception $e ) | |
| 442 | +		{ | |
| 440 | 443 | return []; | 
| 441 | 444 | } | 
| 442 | 445 | } | 
| @@ -441,9 +441,12 @@ | ||
| 441 | 441 |  	{ | 
| 442 | 442 | $manager = \Aimeos\MShop::create( $this->getContext(), 'plugin' ); | 
| 443 | 443 | |
| 444 | -		try { | |
| 444 | + try | |
| 445 | +		{ | |
| 445 | 446 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); | 
| 446 | -		} catch( \Aimeos\MShop\Exception $e ) { | |
| 447 | + } | |
| 448 | + catch( \Aimeos\MShop\Exception $e ) | |
| 449 | +		{ | |
| 447 | 450 | return []; | 
| 448 | 451 | } | 
| 449 | 452 | } | 
| @@ -421,9 +421,12 @@ | ||
| 421 | 421 |  	{ | 
| 422 | 422 | $manager = \Aimeos\MShop::create( $this->getContext(), 'catalog' ); | 
| 423 | 423 | |
| 424 | -		try { | |
| 424 | + try | |
| 425 | +		{ | |
| 425 | 426 | return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId(); | 
| 426 | -		} catch( \Exception $e ) { | |
| 427 | + } | |
| 428 | + catch( \Exception $e ) | |
| 429 | +		{ | |
| 427 | 430 | return null; | 
| 428 | 431 | } | 
| 429 | 432 | } | 
| @@ -407,7 +407,9 @@ | ||
| 407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); | 
| 408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); | 
| 409 | 409 | } | 
| 410 | -			catch( \Exception $e ) { ; } // Show product even if file isn't available any more | |
| 410 | + catch( \Exception $e ) | |
| 411 | +			{ | |
| 412 | +; } // Show product even if file isn't available any more | |
| 411 | 413 | } | 
| 412 | 414 | |
| 413 | 415 | return $data; |