Changeset 14239 for branches/beta


Ignore:
Timestamp:
2007/06/05 14:06:43 (15 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/html/install/user_data/include/campaign/default/src/application.php

    r59 r14239  
    8787 
    8888            if($orverlapping_flg) { 
    89                 if(lfOverlappingCheck($objCustomer->getValue('customer_id'))) { 
     89                if(lfOverlappingCheck($objCustomer->getValue('customer_id'), $campaign_id)) { 
    9090                    $objPage->arrErr['login_email'] = "¢¨ Ê£¿ô²ó¤´±þÊ礹¤ë¤³¤È¤Ï½ÐÍè¤Þ¤»¤ó¡£"; 
    9191                } 
     
    212212 * ÀâÌÀ¡¡¡§½ÅÊ£±þÊç¥Á¥§¥Ã¥¯ 
    213213 * °ú¿ô1 ¡§¸ÜµÒID 
     214 * °ú¿ô2 ¡§¥­¥ã¥ó¥Ú¡¼¥óID 
    214215 * Ìá¤êÃÍ¡§¥Õ¥é¥° (½ÅÊ£¤¬¤¢¤Ã¤¿¤é true ½ÅÊ£¤¬¤Ê¤«¤Ã¤¿¤é false) 
    215216 */ 
    216 function lfOverlappingCheck($customer_id) { 
     217function lfOverlappingCheck($customer_id, $campaign_id) { 
    217218     
    218219    global $objQuery; 
    219220     
    220     $count = $objQuery->count("dtb_campaign_order", "customer_id = ?", array($customer_id)); 
     221    $count = $objQuery->count("dtb_campaign_order", "customer_id = ? AND campaign_id = ?", array($customer_id, $campaign_id)); 
    221222    if($count > 0) { 
    222223        return true; 
Note: See TracChangeset for help on using the changeset viewer.