com web/php: Fix warning: ws.php
| From: | Rasmus Lerdorf | Date: | Mon, 27 May 2013 16:51:41 +0000 |
| Subject: | com web/php: Fix warning: ws.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15895@lists.php.net to get a copy of this message | ||
Commit: c1ee558acb69503bf7b2949e323841dcbc44978f
Author: Rasmus Lerdorf <rasmus@php.net> Mon, 27 May 2013 09:51:41 -0700
Parents: 9fcac0c6783fd0b1302da1682802086ae63658d1
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=c1ee558acb69503bf7b2949e323841dcbc44978f
Log:
Fix warning
Changed paths:
M ws.php
Diff:
diff --git a/ws.php b/ws.php
index 7ba4d3f..0561aaa 100644
--- a/ws.php
+++ b/ws.php
@@ -95,7 +95,7 @@ function ws_bing_massage($data) {
),
);
- foreach ($set as $result) {
+ foreach ((array)$set as $result) {
$massaged['ResultSet']['Result'][] = array(
'Title' => $result['Title'],
'Summary' => $result['Description'],