Permalink
Browse files

PHP Warnings and Errors: fence code with tests to make sure object is…

… available.
  • Loading branch information...
Rad Geek
Rad Geek committed Sep 13, 2017
1 parent 9abee27 commit cd5344ca86a932f0515a13365481883cbd004eeb
Showing with 3 additions and 1 deletion.
  1. +3 −1 feedwordpresslocalpost.class.php
@@ -93,7 +93,9 @@ public function syndication_permalink () {
public function feed () {
global $feedwordpress;
$this->link = $feedwordpress->subscription($this->feed_id());
if (is_object($feedwordpress) and method_exists($feedwordpress, 'subscription')) :
$this->link = $feedwordpress->subscription($this->feed_id());
endif;
return $this->link;
}

0 comments on commit cd5344c

Please sign in to comment.