| @@ 349-358 (lines=10) @@ | ||
| 346 | ; |
|
| 347 | $result = $query->execute(); |
|
| 348 | ||
| 349 | while($row = $result->fetch()) { |
|
| 350 | if(!isset($sections[$row['priority']])) { |
|
| 351 | $sections[$row['priority']] = []; |
|
| 352 | } |
|
| 353 | try { |
|
| 354 | $sections[$row['priority']][] = $this->query($row['class']); |
|
| 355 | } catch (QueryException $e) { |
|
| 356 | // skip |
|
| 357 | } |
|
| 358 | } |
|
| 359 | $result->closeCursor(); |
|
| 360 | ||
| 361 | ksort($sections); |
|
| @@ 414-423 (lines=10) @@ | ||
| 411 | ->setParameter('section', $section); |
|
| 412 | ||
| 413 | $result = $query->execute(); |
|
| 414 | while($row = $result->fetch()) { |
|
| 415 | if(!isset($settings[$row['priority']])) { |
|
| 416 | $settings[$row['priority']] = []; |
|
| 417 | } |
|
| 418 | try { |
|
| 419 | $settings[$row['priority']][] = $this->query($row['class']); |
|
| 420 | } catch (QueryException $e) { |
|
| 421 | // skip |
|
| 422 | } |
|
| 423 | } |
|
| 424 | $result->closeCursor(); |
|
| 425 | ||
| 426 | ksort($settings); |
|