diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-12 17:20:12 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-12 17:20:12 +0100 |
commit | dc4d42b4d04d517273ed006959bb21b6c9b0cbce (patch) | |
tree | a5a277d5ba83eb81f174a5e1c3a97e5d400f418c | |
parent | dd85229f4d992fcb46d1f9f852b5fb9e0f91a976 (diff) | |
download | planet-dc4d42b4d04d517273ed006959bb21b6c9b0cbce.tar planet-dc4d42b4d04d517273ed006959bb21b6c9b0cbce.tar.gz planet-dc4d42b4d04d517273ed006959bb21b6c9b0cbce.tar.bz2 planet-dc4d42b4d04d517273ed006959bb21b6c9b0cbce.tar.xz planet-dc4d42b4d04d517273ed006959bb21b6c9b0cbce.zip |
Fix PHP notice
"Only variables should be assigned by reference in
moonmoon/custom/views/default/sidebar.tpl.php on line 2"
-rw-r--r-- | postload.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/postload.php b/postload.php index 943a84e..7341b82 100644 --- a/postload.php +++ b/postload.php @@ -12,14 +12,13 @@ foreach ($xml->xpath('/opml/body/outline[@xmlUrl]') as $element) { if ($element->attributes()->xmlUrl == $_GET['url']) { - $Planet->addPerson( - new PlanetFeed( - '', - $_GET['url'], - '', - false - ) + $person = new PlanetFeed( + '', + $_GET['url'], + '', + false ); + $Planet->addPerson($person); $Planet->download(1); header('Content-type: image/png'); |