Changeset 5886
- Timestamp:
- Mar 20, 2008, 12:08:11 AM (14 years ago)
- Location:
- OpenPNE/branches/stable-2.10.x/webapp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.10.x/webapp/lib/db/commu.php
r5303 r5886 2512 2512 'r_date' => db_now(), 2513 2513 ); 2514 2514 2515 if ($GLOBALS['_OPENPNE_DSN_LIST']['main']['dsn']['phptype'] == 'pgsql') { 2515 2516 $open_date = '0000-01-01'; 2516 2517 $invite_period = '0000-01-01'; 2517 if (isset($topic['open_date']) && $topic['open_date'] != '') {2518 $open_date = $topic['open_date'];2519 }2520 2521 if (isset($topic['invite_period']) && $topic['invite_period'] != '') {2522 $invite_period = $topic['invite_period'];2523 }2524 2518 } else { 2519 $open_date = '0000-00-00'; 2520 $invite_period = '0000-00-00'; 2521 } 2522 2523 if (isset($topic['open_date']) && $topic['open_date']) { 2525 2524 $open_date = $topic['open_date']; 2525 } 2526 2527 if (isset($topic['invite_period']) && $topic['invite_period']) { 2526 2528 $invite_period = $topic['invite_period']; 2527 2529 } 2530 2528 2531 if ($data['event_flag']) { 2529 2532 $data += array( … … 2600 2603 'r_date' => db_now(), 2601 2604 ); 2605 2602 2606 if ($GLOBALS['_OPENPNE_DSN_LIST']['main']['dsn']['phptype'] == 'pgsql') { 2603 2607 $open_date = '0000-01-01'; 2604 2608 $invite_period = '0000-01-01'; 2605 if (isset($topic['open_date']) && $topic['open_date'] != '') {2606 $open_date = $topic['open_date'];2607 }2608 2609 if (isset($topic['invite_period']) && $topic['invite_period'] != '') {2610 $invite_period = $topic['invite_period'];2611 }2612 2609 } else { 2610 $open_date = '0000-00-00'; 2611 $invite_period = '0000-00-00'; 2612 } 2613 2614 if (isset($topic['open_date']) && $topic['open_date']) { 2613 2615 $open_date = $topic['open_date']; 2616 } 2617 2618 if (isset($topic['invite_period']) && $topic['invite_period']) { 2614 2619 $invite_period = $topic['invite_period']; 2615 2620 } 2621 2616 2622 if ($data['event_flag']) { 2617 2623 $data += array( -
OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/c_event_add_insert_c_commu_topic.php
r5882 r5886 72 72 if ($event['invite_period_year'].$event['invite_period_month'].$event['invite_period_day']!="") { 73 73 $invite_period = $event['invite_period_year']."-".$event['invite_period_month']."-".$event['invite_period_day']; 74 } else {75 $invite_period = "0000-00-00";76 74 } 77 75
Note: See TracChangeset
for help on using the changeset viewer.