Commit:    e59af7473ce7d25bce289d879e943c303ac9b06b
Author:    Rasmus Lerdorf <[email protected]>         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'],


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to