@@ -392,7 +392,8 @@ class UserProc {
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;
+// var_dump($n);
+ return $n->cnt <= 0;
}
/**
@@ -34,3 +34,4 @@ req()->CV = "999.999.999";
var_dump(explode('-', '1-2'));
var_dump(DebugHelper::get_call_stack(0, 10, true));
+