Fix missing print
This commit is contained in:
parent
87b4381d47
commit
40d17add22
@ -824,7 +824,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
if(! empty($conf->api->enabled)) {
|
||||
// API key
|
||||
$generated_api_key = '';
|
||||
@ -1271,7 +1271,7 @@ else
|
||||
print "</td>";
|
||||
}
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
||||
// API key
|
||||
if(! empty($conf->api->enabled) && $user->admin) {
|
||||
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
||||
@ -1280,7 +1280,7 @@ else
|
||||
print $langs->trans("Hidden");
|
||||
print '<td>';
|
||||
}
|
||||
|
||||
|
||||
// Administrator
|
||||
print '<tr><td>'.$langs->trans("Administrator").'</td><td colspan="2">';
|
||||
if (! empty($conf->multicompany->enabled) && $object->admin && ! $object->entity)
|
||||
@ -1303,7 +1303,8 @@ else
|
||||
print $form->textwithpicto($text, $langs->trans("InternalExternalDesc"));
|
||||
print '</td><td colspan="2">';
|
||||
$type=$langs->trans("Internal");
|
||||
if ($object->societe_id) $type=$langs->trans("External");
|
||||
if ($object->societe_id > 0) $type=$langs->trans("External");
|
||||
print $type;
|
||||
if ($object->ldap_sid) print ' ('.$langs->trans("DomainUser").')';
|
||||
print '</td></tr>'."\n";
|
||||
|
||||
@ -1850,7 +1851,7 @@ else
|
||||
}
|
||||
print $text;
|
||||
print "</td></tr>\n";
|
||||
|
||||
|
||||
// API key
|
||||
if(! empty($conf->api->enabled) && $user->admin) {
|
||||
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
|
||||
*
|
||||
@ -168,7 +168,7 @@ if ($result)
|
||||
$obj = $db->fetch_object($result);
|
||||
$var=!$var;
|
||||
|
||||
$userstatic->id=$obj->id;
|
||||
$userstatic->id=$obj->rowid;
|
||||
$userstatic->ref=$obj->label;
|
||||
$userstatic->login=$obj->login;
|
||||
$userstatic->statut=$obj->statut;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user