|
@@ -389,7 +389,7 @@ class UserProc {
|
|
|
*/
|
|
|
static function checkRoleNameNotExist($roleName) {
|
|
|
// return true; # 不再检查昵称重复
|
|
|
- static $sqlFormat = "SELECT count(*) as rows FROM `tab_rolename` WHERE roleName='%s';";
|
|
|
+ static $sqlFormat = "SELECT count(*) as cnt FROM `tab_rolename` WHERE roleName='%s';";
|
|
|
$sql = sprintf($sqlFormat, $roleName);
|
|
|
$n = daoInst()->query($sql)->fetch();
|
|
|
return $n->rows <= 0;
|