| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | $this->subscriptions = $this->getSubscriptions( |
||
| 21 | \CampTemplate::singleton()->context()->publication->identifier, |
||
| 22 | \CampTemplate::singleton()->context()->user->identifier |
||
| 23 | ); |
||
| 24 | |||
| 25 | if (count($this->subscriptions) == 0) { |
||
| 26 | $this->subscriptions = array(); |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 58 |