diff --git a/include/screenshot.php b/include/screenshot.php index f0e73bc..c38a200 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -50,7 +50,7 @@ class Screenshot { $sQuery = "SELECT ".$this->sTable.".*, appVersion.appId AS appId FROM ".$this->sTable.", appVersion WHERE ".$this->sTable.".versionId = appVersion.versionId - AND ".$this->sTableId." = ".$this->iScreenshotId." + AND ".$this->sTableId." = ".$iScreenshotId." AND type = 'image'"; if($hResult = query_appdb($sQuery)) {