Changeset 1122


Ignore:
Timestamp:
Apr 5, 2006, 1:07:40 AM (18 years ago)
Author:
plg
Message:

bug fixed: I had forgotten to re-add storage_category_id in the list of
fields to insert in #images. To avoid future mistakes, I extract
automatically all keys of the first array to insert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_update.php

    r1121 r1122  
    539539      mass_inserts(
    540540        IMAGES_TABLE,
    541         array(
    542           'id', 'file', 'date_available', 'tn_ext', 'representative_ext',
    543           'has_high', 'path',
    544           ),
     541        array_keys($inserts[0]),
    545542        $inserts
    546543        );
     
    549546      mass_inserts(
    550547        IMAGE_CATEGORY_TABLE,
    551         array(
    552           'image_id','category_id',
    553           ),
     548        array_keys($insert_links[0]),
    554549        $insert_links
    555550        );
Note: See TracChangeset for help on using the changeset viewer.