aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-13 03:13:40 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-13 03:13:40 +0000
commit80754de17245e385bbbd7429bd2147312ee1b62e (patch)
tree9485ecefcebdc3440bb7792c133362992bdf66f8 /admin
parented6d397aa1a82d6a8f0794b46a381fe746a0ae70 (diff)
very small improvements:
- mass_inserts does not requires keys to start at 0 - recent_cats categories are sorted by global_rank (consistency) - removed warning from page_header.php (when included from redirect) - added 2 template functions for plugins (get_var and concat_var) - removed unused code from profile.php - changed css width for tag selection (search page) from 55em to almost 100% git-svn-id: http://piwigo.org/svn/trunk@1719 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index a60d44b75..061de2740 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -528,11 +528,16 @@ function mass_inserts($table_name, $dbfields, $datas)
INSERT INTO '.$table_name.'
('.implode(',', $dbfields).')
VALUES';
- foreach ($datas as $insert_id => $insert)
+ $first = 1;
+ foreach ($datas as $insert)
{
$query.= '
';
- if ($insert_id > 0)
+ if ($first)
+ {
+ $first = 0;
+ }
+ else
{
$query.= ',';
}
@@ -1890,7 +1895,7 @@ function check_conf()
{
global $conf, $header_notes;
$count = 0;
-
+
if (($conf['show_exif']) and (!function_exists('read_exif_data')))
{
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');