@@ -799,9 +799,12 @@ discard block |
||
| 799 | 799 | |
| 800 | 800 | foreach( $sitePath as $siteId ) |
| 801 | 801 | { |
| 802 | - try { |
|
| 802 | + try |
|
| 803 | + { |
|
| 803 | 804 | $path = $this->createTreeManager( $siteId )->getPath( $id ); |
| 804 | - } catch( \Exception $e ) { |
|
| 805 | + } |
|
| 806 | + catch( \Exception $e ) |
|
| 807 | + { |
|
| 805 | 808 | continue; |
| 806 | 809 | } |
| 807 | 810 | |
@@ -845,9 +848,12 @@ discard block |
||
| 845 | 848 | |
| 846 | 849 | foreach( $sitePath as $siteId ) |
| 847 | 850 | { |
| 848 | - try { |
|
| 851 | + try |
|
| 852 | + { |
|
| 849 | 853 | $node = $this->createTreeManager( $siteId )->getNode( $id, $level, $criteria ); |
| 850 | - } catch( \Aimeos\MW\Tree\Exception $e ) { |
|
| 854 | + } |
|
| 855 | + catch( \Aimeos\MW\Tree\Exception $e ) |
|
| 856 | + { |
|
| 851 | 857 | continue; |
| 852 | 858 | } |
| 853 | 859 | |
@@ -929,8 +935,7 @@ discard block |
||
| 929 | 935 | if( $child->getParentId() !== $item->getId() ) { |
| 930 | 936 | $this->move( $child->getId(), $item->getId(), $child->getParentId() ); |
| 931 | 937 | } |
| 932 | - } |
|
| 933 | - else |
|
| 938 | + } else |
|
| 934 | 939 | { |
| 935 | 940 | $this->insert( $child, $item->getId() ); |
| 936 | 941 | } |
@@ -1076,8 +1081,7 @@ discard block |
||
| 1076 | 1081 | */ |
| 1077 | 1082 | $path = 'mshop/catalog/manager/update-usage'; |
| 1078 | 1083 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ), false ); |
| 1079 | - } |
|
| 1080 | - else |
|
| 1084 | + } else |
|
| 1081 | 1085 | { |
| 1082 | 1086 | /** mshop/catalog/manager/insert-usage/mysql |
| 1083 | 1087 | * Updates the config, editor, ctime and mtime value of an inserted record |
@@ -1141,8 +1145,7 @@ discard block |
||
| 1141 | 1145 | { |
| 1142 | 1146 | $stmt->bind( $idx++, $siteid ); |
| 1143 | 1147 | $stmt->bind( $idx++, $id, \Aimeos\Base\DB\Statement\Base::PARAM_INT ); |
| 1144 | - } |
|
| 1145 | - else |
|
| 1148 | + } else |
|
| 1146 | 1149 | { |
| 1147 | 1150 | $stmt->bind( $idx++, $date ); // ctime |
| 1148 | 1151 | $stmt->bind( $idx++, $siteid ); |