mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fixes #2454 remove useless variables
This commit is contained in:
@@ -251,14 +251,6 @@ SELECT
|
||||
$storage_category_id = $row['storage_category_id'];
|
||||
}
|
||||
|
||||
$level_convert = [
|
||||
"0" => "4",
|
||||
"1" => "3",
|
||||
"2" => "2",
|
||||
"4" => "1",
|
||||
"8" => "0",
|
||||
];
|
||||
|
||||
foreach ($images as $row)
|
||||
{
|
||||
$element_ids[] = $row['id'];
|
||||
@@ -406,7 +398,6 @@ SELECT
|
||||
'U_DELETE' => $admin_url_start.'&delete=1&pwg_token='.get_pwg_token(),
|
||||
'U_SYNC' => $admin_url_start.'&sync_metadata=1',
|
||||
'PATH'=>$row['path'],
|
||||
'LEVEL_CONVERT' => $level_convert[!empty($row['level'])?$row['level']:'0'],
|
||||
'level_options_selected' => array($selected_level)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user