|  | @@ 396-406 (lines=11) @@ | 
                                                            
                                    | 393 |  |             $catCriteria->setOrder('ASC'); | 
                                                            
                                    | 394 |  |             $catObjs    = $helper->getHandler('Cat')->getAll($catCriteria); | 
                                                            
                                    | 395 |  |             $selections = []; | 
                                                            
                                    | 396 |  |             foreach ($catObjs as $cat_id => $catObj) { | 
                                                            
                                    | 397 |  |                 // create selections: $cat_id-$cat_selected-$old_catsubcr_id-$old_catsubscr_quited | 
                                                            
                                    | 398 |  |                 $selection      = []; | 
                                                            
                                    | 399 |  |                 $selection[0]   = $cat_id; | 
                                                            
                                    | 400 |  |                 $selection[1]   = in_array($cat_id, $_REQUEST['cats']) ? '1' : '0'; //isset($_REQUEST["cats_{$cat_id}"]); | 
                                                            
                                    | 401 |  |                 $selection[2]   = Request::getInt("existing_catsubcr_id_{$cat_id}", 0); | 
                                                            
                                    | 402 |  |                 $selection[3]   = Request::getInt("existing_catsubscr_quited_{$cat_id}", 0); | 
                                                            
                                    | 403 |  |                 $code_selection = implode('-', $selection); | 
                                                            
                                    | 404 |  |                 $selections[]   = $code_selection; | 
                                                            
                                    | 405 |  |                 unset($selection); | 
                                                            
                                    | 406 |  |             } | 
                                                            
                                    | 407 |  |             $code_selections = implode('|', $selections); | 
                                                            
                                    | 408 |  |         } | 
                                                            
                                    | 409 |  |  | 
                                                                                
                                |  | @@ 433-443 (lines=11) @@ | 
                                                            
                                    | 430 |  |                 $catCriteria->setOrder('ASC'); | 
                                                            
                                    | 431 |  |                 $catObjs    = $helper->getHandler('Cat')->getAll($catCriteria); | 
                                                            
                                    | 432 |  |                 $selections = []; | 
                                                            
                                    | 433 |  |                 foreach ($catObjs as $cat_id => $catObj) { | 
                                                            
                                    | 434 |  |                     // create selections: $cat_id-$cat_selected-$old_catsubcr_id-$old_catsubscr_quited | 
                                                            
                                    | 435 |  |                     $selection      = []; | 
                                                            
                                    | 436 |  |                     $selection[0]   = $cat_id; | 
                                                            
                                    | 437 |  |                     $selection[1]   = in_array($cat_id, Request::getArray('cats')) ? '1' : '0'; //isset($_REQUEST["cats_{$cat_id}"]); | 
                                                            
                                    | 438 |  |                     $selection[2]   = Request::getInt("existing_catsubcr_id_{$cat_id}", 0); | 
                                                            
                                    | 439 |  |                     $selection[3]   = Request::getInt("existing_catsubscr_quited_{$cat_id}", 0); | 
                                                            
                                    | 440 |  |                     $code_selection = implode('-', $selection); | 
                                                            
                                    | 441 |  |                     $selections[]   = $code_selection; | 
                                                            
                                    | 442 |  |                     unset($selection); | 
                                                            
                                    | 443 |  |                 } | 
                                                            
                                    | 444 |  |                 $code_selections = implode('|', $selections); // string | 
                                                            
                                    | 445 |  |                 // | 
                                                            
                                    | 446 |  |                 // get or create subscr |