]> git.mxchange.org Git - friendica.git/commit
Access image part of siteinfo only if $siteinfo["images"] is actually set. The current
authorVasudev Kamath <kamathvasudev@gmail.com>
Sun, 22 Jul 2012 07:11:07 +0000 (12:41 +0530)
committerVasudev Kamath <kamathvasudev@gmail.com>
Sun, 22 Jul 2012 07:11:07 +0000 (12:41 +0530)
commit863617013cb0c06fda7bca601693fce050cf8e6f
treeabffd96a59cc3c63514c38f31615499a90675a15
parent0ff93edeeef9cdb640395deaf1d1df586a809275
Access image part of siteinfo only if $siteinfo["images"] is actually set. The current
code didn't check this so I was getting an error
     Warning: Invalid argument supplied for foreach() in /home/vasudev/Public/friendica/mod/parse_url.php on line 305

Implemented a check before accessing $siteinfo["images"] with this commit and now warning doesn't come when giving URL of a site which doesn't have image from link button of post area
mod/parse_url.php