aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
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\']');