diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-04-05 02:01:36 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-04-05 02:01:36 +0000 |
commit | bdceff32bcdd7a6ed72697384148577da4bc71d1 (patch) | |
tree | 10a99a67fa7c8685aab8bb213a4c0252bd48d30a /install/db/19-database.php | |
parent | db80e86df1d0708c18255c7e993a224ce6589b2a (diff) |
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
Diffstat (limited to 'install/db/19-database.php')
-rw-r--r-- | install/db/19-database.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install/db/19-database.php b/install/db/19-database.php index 035aff95a..d1fdb4a74 100644 --- a/install/db/19-database.php +++ b/install/db/19-database.php @@ -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]), |