com web/php: Fix warning: ws.php

From: 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-22844@lists.php.net to get a copy of this message
Commit: e59af7473ce7d25bce289d879e943c303ac9b06b Author: Rasmus Lerdorf <rasmus@php.net> Mon, 27 May 2013 09:51:41 -0700 Parents: 5c2573c43810b3117e4d204399f8b5a6b1fc120e Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e59af7473ce7d25bce289d879e943c303ac9b06b 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'],

« previous php.webmaster (#22844) next »