ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 5884


Ignore:
Timestamp:
Mar 19, 2008, 10:33:08 PM (14 years ago)
Author:
ebihara
Message:

#2105:r5881の対処をDB関数内でおこなうようにし、PostgreSQLに影響がでないようにした

Location:
OpenPNE/trunk/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/commu.php

    r5283 r5884  
    25932593        'r_date'      => db_now(),
    25942594    );
     2595
    25952596    if ($GLOBALS['_OPENPNE_DSN_LIST']['main']['dsn']['phptype'] == 'pgsql') {
    25962597        $open_date = '0000-01-01';
    25972598        $invite_period = '0000-01-01';
    2598         if (isset($topic['open_date']) && $topic['open_date'] != '') {
    2599             $open_date = $topic['open_date'];
    2600         }
    2601        
    2602         if (isset($topic['invite_period']) && $topic['invite_period'] != '') {
    2603             $invite_period = $topic['invite_period'];
    2604         }
    26052599    } else {
     2600        $open_date = '0000-00-00';
     2601        $invite_period = '0000-00-00';
     2602    }
     2603
     2604    if (isset($topic['open_date']) && $topic['open_date']) {
    26062605        $open_date = $topic['open_date'];
     2606    }
     2607   
     2608    if (isset($topic['invite_period']) && $topic['invite_period']) {
    26072609        $invite_period = $topic['invite_period'];
    26082610    }
     2611
    26092612    if ($data['event_flag']) {
    26102613        $data += array(
  • OpenPNE/trunk/webapp/modules/pc/do/c_event_add_insert_c_commu_topic.php

    r5881 r5884  
    7272        if ($event['invite_period_year'].$event['invite_period_month'].$event['invite_period_day']!="") {
    7373            $invite_period = $event['invite_period_year']."-".$event['invite_period_month']."-".$event['invite_period_day'];
    74         } else {
    75             $invite_period = "0000-00-00";
    7674        }
    7775
Note: See TracChangeset for help on using the changeset viewer.