  |
43 | 43 | | function getGroup($group) { |
| |
44 | 44 | | $boxes = array(); |
| |
45 | 45 | | |
  |
46 | | - | foreach ($this->_boxes[$group] as $box) { |
| |
47 | | - | if (file_exists('includes/boxes/' . $box)) { |
| |
48 | | - | $box_class = 'osC_Boxes_' . substr($box, 0, strrpos($box, '.')); |
| |
| 46 | + | if (isset($this->_boxes[$group])) { |
| |
| 47 | + | foreach ($this->_boxes[$group] as $box) { |
| |
| 48 | + | if (file_exists('includes/boxes/' . $box)) { |
| |
| 49 | + | $box_class = 'osC_Boxes_' . substr($box, 0, strrpos($box, '.')); |
|
49 | 50 | | |
  |
50 | | - | if (class_exists($box_class) === false) { |
| |
51 | | - | include('includes/boxes/' . $box); |
| |
52 | | - | } |
| |
| 51 | + | if (class_exists($box_class) === false) { |
| |
| 52 | + | include('includes/boxes/' . $box); |
| |
| 53 | + | } |
|
53 | 54 | | |
  |
54 | | - | $boxes[] = array('class' => $box, 'object' => $box_class); |
| |
| 55 | + | $boxes[] = array('class' => $box, 'object' => $box_class); |
| |
| 56 | + | } |
  |
55 | 57 | | } |
| |
56 | 58 | | } |
| |
57 | 59 | | |