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)) //{