mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-18 19:55:26 +00:00
fix of uninitialized object warning, issue #710
This commit is contained in:
parent
0b9bb8cb78
commit
3dc8d84229
1 changed files with 6 additions and 3 deletions
|
@ -97,13 +97,16 @@ define('JSONP', 3, true);
|
||||||
header('X-content-type-options: nosniff');
|
header('X-content-type-options: nosniff');
|
||||||
} elseif ($this->version == JSON) {
|
} elseif ($this->version == JSON) {
|
||||||
header('Content-type: application/json; charset=UTF-8');
|
header('Content-type: application/json; charset=UTF-8');
|
||||||
$this->json = new stdClass();
|
|
||||||
} elseif ($this->version == JSONP) {
|
} elseif ($this->version == JSONP) {
|
||||||
header('Content-type: application/javascript; charset=UTF-8');
|
header('Content-type: application/javascript; charset=UTF-8');
|
||||||
$this->json = new stdClass();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->version == JSON || $this->version == JSONP) {
|
||||||
|
$this->json = new stdClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->printHead();
|
$this->printHead();
|
||||||
$this->printChannels();
|
$this->printChannels();
|
||||||
$this->printItems();
|
$this->printItems();
|
||||||
|
@ -202,7 +205,7 @@ define('JSONP', 3, true);
|
||||||
public function setDescription($description)
|
public function setDescription($description)
|
||||||
{
|
{
|
||||||
$tag = ($this->version == ATOM)? 'subtitle' : 'description';
|
$tag = ($this->version == ATOM)? 'subtitle' : 'description';
|
||||||
$this->setChannelElement($tag, $desciption);
|
$this->setChannelElement($tag, $description);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue