Fix fatal error
This commit is contained in:
parent
6e465afb03
commit
c850f4c918
@ -412,13 +412,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
|
||||
$morehtml .= $form->textwithpicto('', 'connect string '.$connectstringserver);
|
||||
} else {
|
||||
$morehtml .= 'IMAP functions not available on your PHP';
|
||||
$morehtml .= 'IMAP functions not available on your PHP. ';
|
||||
}
|
||||
|
||||
if (!$connection)
|
||||
{
|
||||
$morehtml .= 'Failed to open IMAP connection '.$connectstringsource;
|
||||
$morehtml .= '<br>'.imap_last_error();
|
||||
if (function_exists('imap_last_error')) {
|
||||
$morehtml .= '<br>'.imap_last_error();
|
||||
}
|
||||
//var_dump(imap_errors())
|
||||
} else {
|
||||
$morehtml .= imap_num_msg($connection);
|
||||
|
||||
@ -251,6 +251,8 @@ ErrorLoginDateValidity=Error, this login is outside the validity date range
|
||||
ErrorValueLength=Length of field '<b>%s</b>' must be higher than '<b>%s</b>'
|
||||
ErrorReservedKeyword=The word '<b>%s</b>' is a reserved keyword
|
||||
ErrorNotAvailableWithThisDistribution=Not available with this distribution
|
||||
ErrorPublicInterfaceNotEnabled=Public interface was not enabled
|
||||
|
||||
# Warnings
|
||||
WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.
|
||||
WarningPasswordSetWithNoAccount=A password was set for this member. However, no user account was created. So this password is stored but can't be used to login to Dolibarr. It may be used by an external module/interface but if you don't need to define any login nor password for a member, you can disable option "Manage a login for each member" from Member module setup. If you need to manage a login but don't need any password, you can keep this field empty to avoid this warning. Note: Email can also be used as a login if the member is linked to a user.
|
||||
|
||||
@ -231,7 +231,6 @@ TicketLogStatusChanged=Status changed: %s to %s
|
||||
TicketNotNotifyTiersAtCreate=Not notify company at create
|
||||
Unread=Unread
|
||||
TicketNotCreatedFromPublicInterface=Not available. Ticket was not created from public interface.
|
||||
PublicInterfaceNotEnabled=Public interface was not enabled
|
||||
ErrorTicketRefRequired=Ticket reference name is required
|
||||
|
||||
#
|
||||
|
||||
@ -71,7 +71,8 @@ $user_assign = new User($db);
|
||||
$user_create = new User($db);
|
||||
|
||||
if (!$conf->global->RECRUITMENT_ENABLE_PUBLIC_INTERFACE) {
|
||||
print '<div class="error">'.$langs->trans('PublicInterfaceForbidden').'</div>';
|
||||
$langs->load("errors");
|
||||
print '<div class="error">'.$langs->trans('ErrorPublicInterfaceNotEnabled').'</div>';
|
||||
$db->close();
|
||||
exit();
|
||||
}
|
||||
|
||||
@ -156,7 +156,8 @@ $conf->dol_hide_topmenu = 1;
|
||||
$conf->dol_hide_leftmenu = 1;
|
||||
|
||||
if (!$conf->global->RECRUITMENT_ENABLE_PUBLIC_INTERFACE) {
|
||||
print '<div class="error">'.$langs->trans('PublicInterfaceForbidden').'</div>';
|
||||
$langs->load("errors");
|
||||
print '<div class="error">'.$langs->trans('ErrorPublicInterfaceNotEnabled').'</div>';
|
||||
$db->close();
|
||||
exit();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user