friendica/friendica — pull request #401 by copyninja (2012-07-22 07:19:56+00:00)
Title: Image part of Site should be accessed only if its present

While trying to get URL data into post using link button. I noticed this warning in post area

>Warning: Invalid argument supplied for foreach() in /home/vasudev/Public/friendica/mod/parse_url.php on line 305

Checking the code showed that while parsing the URL image data will be set if page contains an image. The part which fills data into post area was accessing image part of siteinfo without checking this which was causing this waring

foreach($siteinfo["images"] as $imagedata)

Now implemented a check to see if $siteinfo["images"] is not empty before calling this foreach function and warning disappeared.