- no link to add screenshot when no version is selected and no screenshot

exists for any version (as screenshots are linked to a particular version)
This commit is contained in:
Jonathan Ernst
2004-12-19 17:40:53 +00:00
committed by WineHQ
parent d7c67e1210
commit 31459341ef

View File

@@ -84,7 +84,10 @@ function get_screenshot_img($appId, $versionId="")
}
$img = html_frame_start("",'128','',2);
$img .= "<a href='screenshots.php?appId=$appId&versionId=$versionId'>$imgFile</a>";
if($versionId || mysql_num_rows($result))
$img .= "<a href='screenshots.php?appId=$appId&versionId=$versionId'>$imgFile</a>";
else // no link for adding app screenshot as screenshots are linked to versions
$img .= $imgFile;
$img .= html_frame_end()."<br />";
return $img;