summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-20 11:37:19 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-20 11:37:19 +0200
commit051666d59b5456afbea8f5abb7e4680942f5df5d (patch)
treeff03a150c9822134635b2d1f2547f27cdf52bd57 /app
parent1b83f93670fd190893f5c39845c444b443dbded8 (diff)
Correction erreur variable existante
Diffstat (limited to 'app')
-rw-r--r--app/models/Feed.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index 19c3d8053..d4c7dfe17 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -250,14 +250,14 @@ class Feed extends Model {
}
$content = $item->get_content ();
- $links = array();
+ $elinks = array();
foreach ($item->get_enclosures() as $enclosure) {
- $link = $enclosure->get_link();
- if (array_key_exists($link, $links)) continue;
- $links[$link] = '1';
+ $elink = $enclosure->get_link();
+ if (array_key_exists($elink, $elinks)) continue;
+ $elinks[$elink] = '1';
$mime = strtolower($enclosure->get_type());
if (strpos($mime, 'image/') === 0) {
- $content .= '<br /><img src="' . $link . '" />';
+ $content .= '<br /><img src="' . $elink . '" />';
}
}