aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/parse_url.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 061053196..5dd7de750 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -302,11 +302,16 @@ function parse_url_content(&$a) {
$image = "";
- foreach ($siteinfo["images"] as $imagedata)
+ if($siteinfo["image"] != ""){
+ /*
+ Execute below code only if image is present in siteinfo
+ */
+ foreach ($siteinfo["images"] as $imagedata)
if($textmode)
- $image .= '[img='.$imagedata["width"].'x'.$imagedata["height"].']'.$imagedata["src"].'[/img]';
+ $image .= '[img='.$imagedata["width"].'x'.$imagedata["height"].']'.$imagedata["src"].'[/img]';
else
- $image .= '<img height="'.$imagedata["height"].'" width="'.$imagedata["width"].'" src="'.$imagedata["src"].'" alt="photo" />';
+ $image .= '<img height="'.$imagedata["height"].'" width="'.$imagedata["width"].'" src="'.$imagedata["src"].'" alt="photo" />';
+ }
if(strlen($text)) {
if($textmode)