mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
* old links search.php?cat_id=123 will now check the album id * existing search including a filter on an album will check the album is still available
This commit is contained in:
+14
@@ -58,6 +58,20 @@ $cat_ids = array();
|
||||
if (isset($_GET['cat_id']))
|
||||
{
|
||||
check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
|
||||
|
||||
$query = '
|
||||
SELECT
|
||||
*
|
||||
FROM '.USER_CACHE_CATEGORIES_TABLE.'
|
||||
WHERE cat_id = '.$_GET['cat_id'].'
|
||||
AND user_id = '.$user['id'].'
|
||||
;';
|
||||
$found_categories = query2array($query);
|
||||
if (empty($found_categories))
|
||||
{
|
||||
page_not_found(l10n('Requested album does not exist'));
|
||||
}
|
||||
|
||||
$cat_ids = array($_GET['cat_id']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user