From 9994a2260d3dd92620a61185ec88e442ee2f9a38 Mon Sep 17 00:00:00 2001 From: camer0n Date: Mon, 14 Apr 2025 10:30:57 -0700 Subject: [PATCH] #Issue 5443 Warning removal tweak. --- e107_plugins/download/request.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e107_plugins/download/request.php b/e107_plugins/download/request.php index a023a2715..eb27d6a6e 100644 --- a/e107_plugins/download/request.php +++ b/e107_plugins/download/request.php @@ -302,9 +302,11 @@ class download_request if(!empty($table)) { $sql->select($table, "*", "{$table}_id = '{$id}'"); - $row = $sql->fetch(); - extract($row); - $image = ($table == "upload" ? $row['upload_ss'] : $row['download_image']); + if($row = $sql->fetch()) + { + extract($row); + $image = ($table == "upload" ? $row['upload_ss'] : $row['download_image']); + } } //if (preg_match("/Binary\s(.*?)\/.*/", $image, $result)) //{