mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
image sort order for tags
very minor code and language simplifications and corrections git-svn-id: http://piwigo.org/svn/trunk@1125 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -80,7 +80,7 @@ while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$tag_id[$keyword] = $current_id++;
|
||||
}
|
||||
|
||||
|
||||
if (!isset($tag_images[ $tag_id[$keyword] ]))
|
||||
{
|
||||
$tag_images[ $tag_id[$keyword] ] = array();
|
||||
@@ -102,6 +102,7 @@ foreach ($tag_id as $tag_name => $tag_id)
|
||||
)
|
||||
);
|
||||
}
|
||||
if (!empty($datas))
|
||||
mass_inserts(
|
||||
PREFIX_TABLE.'tags',
|
||||
array_keys($datas[0]),
|
||||
@@ -123,6 +124,7 @@ foreach ($tag_images as $tag_id => $images)
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($datas))
|
||||
mass_inserts(
|
||||
PREFIX_TABLE.'image_tag',
|
||||
array_keys($datas[0]),
|
||||
|
||||
Reference in New Issue
Block a user