| @@ -92,9 +92,11 @@ | ||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | public function feed () { |
| 95 | 95 | global $feedwordpress; |
| 96 | - $this->link = $feedwordpress->subscription($this->feed_id()); | |
| 96 | + if (is_object($feedwordpress) and method_exists($feedwordpress, 'subscription')) : | |
| 97 | + $this->link = $feedwordpress->subscription($this->feed_id()); | |
| 98 | + endif; | |
| 97 | 99 | return $this->link; |
| 98 | 100 | } |
| 99 | 101 | |
| 100 | 102 | public function feed_id () { |