- Added a attachment_thumbnail option to the CS RSS feed.

This commit is contained in:
JT Smith 2007-01-25 17:14:25 +00:00
parent 3e23558cec
commit b319535fd1
4 changed files with 6 additions and 1 deletions

View file

@ -1606,7 +1606,7 @@ sub newByUrl {
$url =~ s/\"//;
my $asset;
if ($url ne "") {
my ($id, $class) = $session->db->quickArray("select distinct asset.assetId, asset.className from assetData join asset using (assetId) where assetData.url = ?", [ $url ]);
my ($id, $class) = $session->db->quickArray("select asset.assetId, asset.className from assetData join asset using (assetId) where assetData.url = ? limit 1", [ $url ]);
if ($id ne "" || $class ne "") {
return WebGUI::Asset->new($session,$id, $class, $revisionDate);
} else {