) &&
($default_admin || $u->get('email', $ff->Pman['local_autoauth']))
) {
- print_r('this one???');exit;
+
$user = $default_admin ? $default_admin->toArray() : $u->toArray();
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object) $user);
$im->selectAdd();
$im->selectAs($im, 'company_id_logo_id_%s');
if ($im->find(true)) {
-
+
foreach($im->toArray() as $k=>$v) {
+ if (!preg_match('/^company_id_logo_id_/', $k)) {
+ continue;
+ }
$aur[$k] = $v;
}
}
if ($roo->authUser->id > -1 || $p->count() > 1) {
return;
}
- $c = DB_DAtaObject::Factory('core_company');
- $tc =$c->count();
+ $c = DB_DataObject::Factory('core_company');
+ $tc = $c->count();
if (!$tc || $tc> 1) {
$roo->jerr("can not create initial user as multiple companies already exist");
}