- Timestamp:
- 2012/01/17 16:15:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/helper/SC_Helper_Customer.php
r21376 r21402 276 276 */ 277 277 function sfGetUniqSecretKey() { 278 $objQuery =& SC_Query_Ex::getSingletonInstance();279 280 do{278 $objQuery =& SC_Query_Ex::getSingletonInstance(); 279 $count = 1; 280 while ($count != 0) { 281 281 $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 } 284 284 return $uniqid; 285 285 }
Note: See TracChangeset
for help on using the changeset viewer.
