1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

#Issue 5443 Warning removal tweak.

This commit is contained in:
camer0n
2025-04-14 10:30:57 -07:00
parent d4f0700b4b
commit 9994a2260d

View File

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