com web/doc-editor: Fix: php/utility.php
| From: | Yannick Torres | Date: | Wed, 23 Jul 2014 19:31:57 +0000 |
| Subject: | com web/doc-editor: Fix: php/utility.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12639@lists.php.net to get a copy of this message | ||
Commit: a6d6ef5dfedc02730f83f19c7b769dee4478de5c
Author: Yannick Torrès <yannick.torres@gmail.com> Wed, 23 Jul 2014 21:31:57 +0200
Parents: 63059357015fa792dcc539ba048dcdca2fda7830
Branches: master
Link: http://git.php.net/?p=web/doc-editor.git;a=commitdiff;h=a6d6ef5dfedc02730f83f19c7b769dee4478de5c
Log:
Fix
Changed paths:
M php/utility.php
Diff:
diff --git a/php/utility.php b/php/utility.php
index 6a4da01..80cdb3d 100644
--- a/php/utility.php
+++ b/php/utility.php
@@ -139,7 +139,8 @@ function getFlickr() {
foreach ($xml->channel->item as $item ) {
$namespaces = $item->getNameSpaces(true);
- $thumbnail =
$item->children($namespaces['media'])->thumbnail->attributes()['url'];
+ $t = $item->children($namespaces['media'])->thumbnail->attributes();
+ $thumbnail = $t['url'];
$return[] = array(
'img' => (string)$thumbnail,