| @@ 652-664 (lines=13) @@ | ||
| 649 | { |
|
| 650 | foreach ($this->images as $identifier => $images) |
|
| 651 | { |
|
| 652 | if (isset($images['original'])) |
|
| 653 | { |
|
| 654 | $image = $images['original']; |
|
| 655 | } |
|
| 656 | else if (isset($images['main'])) |
|
| 657 | { |
|
| 658 | $image = $images['main']; |
|
| 659 | } |
|
| 660 | else |
|
| 661 | { |
|
| 662 | debug_add("Image {$identifier} has no 'original' or 'main' image, skipping recreation.", MIDCOM_LOG_INFO); |
|
| 663 | continue; |
|
| 664 | } |
|
| 665 | ||
| 666 | if (empty($image['object'])) |
|
| 667 | { |
|
| @@ 317-328 (lines=12) @@ | ||
| 314 | */ |
|
| 315 | private function _add_image_row($identifier, array $images, $frozen) |
|
| 316 | { |
|
| 317 | if (isset($images['main'])) |
|
| 318 | { |
|
| 319 | $info = $images['main']; |
|
| 320 | } |
|
| 321 | else if (isset($images['original'])) |
|
| 322 | { |
|
| 323 | $info = $images['original']; |
|
| 324 | } |
|
| 325 | else |
|
| 326 | { |
|
| 327 | $info = current($images); |
|
| 328 | } |
|
| 329 | if (empty($info['object']->guid)) |
|
| 330 | { |
|
| 331 | //Panic, broken identifier |
|