-CC-1736: install/airtime-user.php script needs to be updated for the new Zend Framework

This commit is contained in:
martin 2011-02-22 19:01:33 -05:00
parent a20e279840
commit 23e533aa67
2 changed files with 71 additions and 49 deletions

View file

@ -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();
}
}
}