From 2519666e1c831f85836f9ce6d975d3ceb975c09d Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 27 Nov 2023 01:01:56 -0500 Subject: google web, videos and news, various other fixes --- web.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'web.php') diff --git a/web.php b/web.php index 97905be..5511392 100644 --- a/web.php +++ b/web.php @@ -146,9 +146,17 @@ if(count($results["image"]) !== 0){ $right["image"] .= '' . - 'thumb' . - '
' . $image["source"][0]["width"] . 'x' . $image["source"][0]["height"] . '
' . - '
'; + 'thumb'; + + if( + $image["source"][0]["width"] !== null && + $image["source"][0]["height"] !== null + ){ + + $right["image"] .= '
' . $image["source"][0]["width"] . 'x' . $image["source"][0]["height"] . '
'; + } + + $right["image"] .= ''; } $right["image"] .= -- cgit v1.2.3