|
@@ -97,8 +97,7 @@ discard block |
|
|
block discarded – undo |
|
97
|
97
|
$item->setDateNext( date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' ) ); |
|
98
|
98
|
|
|
99
|
99
|
$manager->saveItem( $item ); |
|
100
|
|
- } |
|
101
|
|
- catch( \Exception $e ) |
|
|
100
|
+ } catch( \Exception $e ) |
|
102
|
101
|
{ |
|
103
|
102
|
$msg = 'Unable to process subscription with ID "%1$S": %2$s'; |
|
104
|
103
|
$logger->log( sprintf( $msg, $item->getId(), $e->getMessage() ) ); |
|
@@ -141,8 +140,7 @@ discard block |
|
|
block discarded – undo |
|
141
|
140
|
|
|
142
|
141
|
$context->setUserId( $baseItem->getCustomerId() ); |
|
143
|
142
|
$context->setGroupIds( $customerItem->getGroups() ); |
|
144
|
|
- } |
|
145
|
|
- catch( \Exception $e ) {} // Subscription without account |
|
|
143
|
+ } catch( \Exception $e ) {} // Subscription without account |
|
146
|
144
|
|
|
147
|
145
|
return $context; |
|
148
|
146
|
} |
Please login to merge, or discard this patch.