diff options
author | mistic100 <mistic@piwigo.org> | 2013-10-19 17:43:04 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-10-19 17:43:04 +0000 |
commit | ae707279a1945e383c312cd648d288606a79e341 (patch) | |
tree | 917bdc6e0609ed0eefed5f3693de3a017685acc4 /admin/include/functions_metadata.php | |
parent | 35ff1b7c1f933799397a0ce0a6723cf82f416ff3 (diff) |
remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions_metadata.php')
-rw-r--r-- | admin/include/functions_metadata.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php index e3fc84d96..4591017bb 100644 --- a/admin/include/functions_metadata.php +++ b/admin/include/functions_metadata.php @@ -219,23 +219,20 @@ SELECT id, path, representative_ext foreach (explode(',', $data[$key]) as $tag_name) { - array_push( - $tags_of[$id], - tag_id_from_tag_name($tag_name) - ); + $tags_of[$id][] = tag_id_from_tag_name($tag_name); } } } $data['date_metadata_update'] = CURRENT_DATE; - array_push($datas, $data); + $datas[] = $data; } if (count($datas) > 0) { $update_fields = get_sync_metadata_attributes(); - array_push($update_fields, 'date_metadata_update'); + $update_fields[] = 'date_metadata_update'; $update_fields = array_diff( $update_fields, @@ -297,7 +294,7 @@ SELECT id $result = pwg_query($query); while ($row = pwg_db_fetch_assoc($result)) { - array_push($cat_ids, $row['id']); + $cat_ids[] = $row['id']; } if (count($cat_ids) == 0) |