| @@ 1388-1393 (lines=6) @@ | ||
| 1385 | $storage[$classPath[1]] = []; |
|
| 1386 | } |
|
| 1387 | if ($id) { |
|
| 1388 | foreach ($storage[$classPath[1]] as $key => $item) { |
|
| 1389 | if ($item[$col] == $id) { |
|
| 1390 | $storage[$classPath[1]][$key] = $this->_params; |
|
| 1391 | break; |
|
| 1392 | } |
|
| 1393 | } |
|
| 1394 | } else { |
|
| 1395 | $id = !empty($storage['scheme'][$classPath[1]]['ai']) ? $storage['scheme'][$classPath[1]]['ai'] : 1; |
|
| 1396 | $this->$col = $id; |
|
| @@ 1590-1596 (lines=7) @@ | ||
| 1587 | if (empty($storage[$classPath[1]])) { |
|
| 1588 | $storage[$classPath[1]] = []; |
|
| 1589 | } |
|
| 1590 | foreach ($storage[$classPath[1]] as $key => $item) { |
|
| 1591 | ||
| 1592 | if ($item[$col] == $id) { |
|
| 1593 | unset($storage[$classPath[1]][$key]); |
|
| 1594 | break; |
|
| 1595 | } |
|
| 1596 | } |
|
| 1597 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
| 1598 | $moduleConfig['storage'][$appType] = $storage; |
|
| 1599 | } else { |
|