Skip to content

Commit ab4939d

Browse files
author
Marius Cramer
committed
Fixed: FS#3042 - APS installer invalid ID error with Joomla
patch from: http://www.howtoforge.com/forums/showthread.php?t=62788&page=2
1 parent f9c424d commit ab4939d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/lib/classes/aps_guicontroller.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public function getNewestPackageID($id)
155155
CONCAT(version, '-', CAST(`release` AS CHAR)) AS current_version
156156
FROM aps_packages
157157
WHERE name = (SELECT name FROM aps_packages WHERE id = ".$app->db->quote($id).")
158+
AND package_status = 2
158159
ORDER BY REPLACE(version, '.', '')+0 DESC, `release` DESC");
159160

160161
if(!empty($result) && ($id != $result['id'])) return $result['id'];

0 commit comments

Comments
 (0)