summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-12 16:32:09 +0100
committernashe <thomas@chauchefoin.fr>2017-07-12 16:32:09 +0100
commitb22bf1b43749f4c99beaa13fb9a83051668b123e (patch)
treec2aca10a6327ce35ad084450161eeab9566eddc1
parent6d86d08e68953733e659892b45d430733977d58a (diff)
downloadplanet-b22bf1b43749f4c99beaa13fb9a83051668b123e.tar
planet-b22bf1b43749f4c99beaa13fb9a83051668b123e.tar.gz
planet-b22bf1b43749f4c99beaa13fb9a83051668b123e.tar.bz2
planet-b22bf1b43749f4c99beaa13fb9a83051668b123e.tar.xz
planet-b22bf1b43749f4c99beaa13fb9a83051668b123e.zip
Fix PHP notice
"Only variables should be passed by reference in /Users/thomas/Workspace/moonmoon/app/classes/Planet.php on line 145"
-rw-r--r--app/classes/Planet.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/classes/Planet.php b/app/classes/Planet.php
index baba7c1..aa323ee 100644
--- a/app/classes/Planet.php
+++ b/app/classes/Planet.php
@@ -133,14 +133,13 @@ class Planet
$opml = OpmlManager::load($file);
$opml_people = $opml->getPeople();
foreach ($opml_people as $opml_person){
- $this->addPerson(
- new PlanetFeed(
- $opml_person['name'],
- $opml_person['feed'],
- $opml_person['website'],
- $opml_person['isDown']
- )
+ $person = new PlanetFeed(
+ $opml_person['name'],
+ $opml_person['feed'],
+ $opml_person['website'],
+ $opml_person['isDown']
);
+ $this->addPerson($person);
}
return count($opml_people);
}