Changeset 5887
- Timestamp:
- Mar 20, 2008, 12:16:09 AM (13 years ago)
- Location:
- OpenPNE/branches/stable-2.8.x/webapp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.8.x/webapp/lib/db/commu.php
r5304 r5887 2414 2414 'r_date' => db_now(), 2415 2415 ); 2416 2417 $open_date = '0000-00-00'; 2418 $invite_period = '0000-00-00'; 2419 2420 if (isset($topic['open_date']) && $topic['open_date']) { 2421 $open_date = $topic['open_date']; 2422 } 2423 2424 if (isset($topic['invite_period']) && $topic['invite_period']) { 2425 $invite_period = $topic['invite_period']; 2426 } 2427 2416 2428 if ($data['event_flag']) { 2417 2429 $data += array( 2418 'open_date' => $ topic['open_date'],2430 'open_date' => $open_date, 2419 2431 'open_date_comment' => $topic['open_date_comment'], 2420 2432 'open_pref_id' => intval($topic['open_pref_id']), 2421 2433 'open_pref_comment' => $topic['open_pref_comment'], 2422 'invite_period' => $ topic['invite_period'],2434 'invite_period' => $invite_period, 2423 2435 ); 2424 2436 } … … 2488 2500 'r_date' => db_now(), 2489 2501 ); 2502 2503 2504 $open_date = '0000-00-00'; 2505 $invite_period = '0000-00-00'; 2506 2507 if (isset($topic['open_date']) && $topic['open_date']) { 2508 $open_date = $topic['open_date']; 2509 } 2510 2511 if (isset($topic['invite_period']) && $topic['invite_period']) { 2512 $invite_period = $topic['invite_period']; 2513 } 2514 2490 2515 if ($data['event_flag']) { 2491 2516 $data += array( 2492 'open_date' => $ topic['open_date'],2517 'open_date' => $open_date, 2493 2518 'open_date_comment' => $topic['open_date_comment'], 2494 2519 'open_pref_id' => intval($topic['open_pref_id']), 2495 2520 'open_pref_comment' => $topic['open_pref_comment'], 2496 'invite_period' => $ topic['invite_period'],2521 'invite_period' => $invite_period, 2497 2522 ); 2498 2523 } -
OpenPNE/branches/stable-2.8.x/webapp/modules/pc/do/c_event_add_insert_c_commu_topic.php
r5883 r5887 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.