Ignore:
Timestamp:
2012/01/17 16:15:39 (14 years ago)
Author:
Seasoft
Message:

2.12系へマイルストーン変更となったチケット分を差し戻し
r21376 #1582,#1526,#1449 作業を簡単にするため、本来対象外のチケット(#1526,#1449)も含めた
r21375 #1581
r21374 #797
r21373 #1583,#1526 作業を簡単にするため、本来対象外のチケット(#1526)も含めた
r21372 #1576
r21371 #1581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/helper/SC_Helper_Customer.php

    r21376 r21402  
    276276     */ 
    277277    function sfGetUniqSecretKey() { 
    278         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    279  
    280         do { 
     278        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
     279        $count      = 1; 
     280        while ($count != 0) { 
    281281            $uniqid = SC_Utils_Ex::sfGetUniqRandomId('r'); 
    282             $exists = $objQuery->exists("dtb_customer", "secret_key = ?", array($uniqid)); 
    283         } while ($exists); 
     282            $count  = $objQuery->count("dtb_customer", "secret_key = ?", array($uniqid)); 
     283        } 
    284284        return $uniqid; 
    285285    } 
Note: See TracChangeset for help on using the changeset viewer.