1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-23 16:01:39 +02:00

#5443 Warning removal.

This commit is contained in:
camer0n
2025-04-14 10:26:42 -07:00
parent 93eeaf614d
commit d4f0700b4b

View File

@@ -299,10 +299,13 @@ class download_request
return;
}
$sql->select($table, "*", "{$table}_id = '{$id}'");
$row = $sql->fetch();
extract($row);
$image = ($table == "upload" ? $row['upload_ss'] : $row['download_image']);
if(!empty($table))
{
$sql->select($table, "*", "{$table}_id = '{$id}'");
$row = $sql->fetch();
extract($row);
$image = ($table == "upload" ? $row['upload_ss'] : $row['download_image']);
}
//if (preg_match("/Binary\s(.*?)\/.*/", $image, $result))
//{
/* $bid = $result[1];