FIX - напутал с типами

This commit is contained in:
Krivchikov Dmitry 2014-05-01 20:16:23 +04:00
parent 5a72857687
commit 9b3fc50cfe
1 changed files with 2 additions and 7 deletions

View File

@ -53,7 +53,7 @@ class IndexController extends Controller
if( !$user->id )
{
$res = $user->add(array(
$user = $user->add(array(
'uid' => $uLoginUser['identity'],
'nick' => $uLoginUser['nickname'],
'name' => $uLoginUser['first_name'],
@ -61,12 +61,7 @@ class IndexController extends Controller
'network' => $uLoginUser['network']
));
if ($res)
{
$user = new User();
$user = $user->getByPK($res);
}
else
if (!$user)
{
return false;
}