Merge pull request #8503 from annando/xmlhead-notice
Fix notice about an unknown variable
This commit is contained in:
commit
7899892351
1 changed files with 3 additions and 3 deletions
|
@ -148,6 +148,8 @@ function localize_item(&$item)
|
||||||
if (!empty($item['verb'])) {
|
if (!empty($item['verb'])) {
|
||||||
$activity = DI::activity();
|
$activity = DI::activity();
|
||||||
|
|
||||||
|
$xmlhead = "<" . "?xml version='1.0' encoding='UTF-8' ?" . ">";
|
||||||
|
|
||||||
if (stristr($item['verb'], Activity::POKE)) {
|
if (stristr($item['verb'], Activity::POKE)) {
|
||||||
$verb = urldecode(substr($item['verb'], strpos($item['verb'],'#') + 1));
|
$verb = urldecode(substr($item['verb'], strpos($item['verb'],'#') + 1));
|
||||||
if (!$verb) {
|
if (!$verb) {
|
||||||
|
@ -160,8 +162,6 @@ function localize_item(&$item)
|
||||||
$Aname = $item['author-name'];
|
$Aname = $item['author-name'];
|
||||||
$Alink = $item['author-link'];
|
$Alink = $item['author-link'];
|
||||||
|
|
||||||
$xmlhead = "<" . "?xml version='1.0' encoding='UTF-8' ?" . ">";
|
|
||||||
|
|
||||||
$obj = XML::parseString($xmlhead . $item['object']);
|
$obj = XML::parseString($xmlhead . $item['object']);
|
||||||
|
|
||||||
$Bname = $obj->title;
|
$Bname = $obj->title;
|
||||||
|
|
Loading…
Reference in a new issue