You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/24 17:56:45 UTC
svn commit: r671227 - in /incubator/shindig/trunk/php/src:
socialdata/samplecontainer/XmlStateFileFetcher.php
socialrest/samplecontainer/XmlStateFileFetcher.php
Author: chabotc
Date: Tue Jun 24 08:56:45 2008
New Revision: 671227
URL: http://svn.apache.org/viewvc?rev=671227&view=rev
Log:
SHINDIG-405 cast XmlString to string for media item mine type and url
Modified:
incubator/shindig/trunk/php/src/socialdata/samplecontainer/XmlStateFileFetcher.php
incubator/shindig/trunk/php/src/socialrest/samplecontainer/XmlStateFileFetcher.php
Modified: incubator/shindig/trunk/php/src/socialdata/samplecontainer/XmlStateFileFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialdata/samplecontainer/XmlStateFileFetcher.php?rev=671227&r1=671226&r2=671227&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialdata/samplecontainer/XmlStateFileFetcher.php (original)
+++ incubator/shindig/trunk/php/src/socialdata/samplecontainer/XmlStateFileFetcher.php Tue Jun 24 08:56:45 2008
@@ -250,8 +250,8 @@
$media = array();
foreach ( $activityItem->mediaItem as $mediaItem ) {
$type = isset($mediaItem['type']) ? (string)$mediaItem['type'] : '';
- $mimeType = isset($mediaItem['mimeType']) ? $mediaItem['mimeType'] : '';
- $url = isset($mediaItem['url']) ? $mediaItem['url'] : '';
+ $mimeType = isset($mediaItem['mimeType']) ? (string)$mediaItem['mimeType'] : '';
+ $url = isset($mediaItem['url']) ? (string)$mediaItem['url'] : '';
$media[] = new MediaItem($mimeType, $type, $url);
}
return $media;
Modified: incubator/shindig/trunk/php/src/socialrest/samplecontainer/XmlStateFileFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/samplecontainer/XmlStateFileFetcher.php?rev=671227&r1=671226&r2=671227&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/samplecontainer/XmlStateFileFetcher.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/samplecontainer/XmlStateFileFetcher.php Tue Jun 24 08:56:45 2008
@@ -256,8 +256,8 @@
$media = array();
foreach ( $activityItem->mediaItem as $mediaItem ) {
$type = isset($mediaItem['type']) ? (string)$mediaItem['type'] : '';
- $mimeType = isset($mediaItem['mimeType']) ? $mediaItem['mimeType'] : '';
- $url = isset($mediaItem['url']) ? $mediaItem['url'] : '';
+ $mimeType = isset($mediaItem['mimeType']) ? (string)$mediaItem['mimeType'] : '';
+ $url = isset($mediaItem['url']) ? (string)$mediaItem['url'] : '';
$media[] = new MediaItem($mimeType, $type, $url);
}
return $media;