-CC-1736: install/airtime-user.php script needs to be updated for the new Zend Framework
This commit is contained in:
parent
a20e279840
commit
23e533aa67
2 changed files with 71 additions and 49 deletions
|
@ -171,5 +171,14 @@ class User {
|
|||
|
||||
return $CC_DBC->GetRow($sql);
|
||||
}
|
||||
|
||||
public static function GetUserID($login){
|
||||
$user = CcSubjsQuery::create()->findOneByDbLogin($login);
|
||||
if (is_null($user)){
|
||||
return -1;
|
||||
} else {
|
||||
return $user->getDbId();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue