mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Clean code
This commit is contained in:
parent
bcd5c207cf
commit
8e82bb7148
|
|
@ -565,7 +565,7 @@ if (empty($reshook)) {
|
|||
}
|
||||
if (!empty($object->url) && !isValidUrl($object->url)) {
|
||||
$langs->load("errors");
|
||||
setEventMessages('', $langs->trans("ErrorBadUrl", $object->url), 'errors');
|
||||
setEventMessages($langs->trans("ErrorBadUrl", $object->url), null, 'errors');
|
||||
}
|
||||
$public = 0;
|
||||
if (isset($public)) {
|
||||
|
|
|
|||
|
|
@ -541,7 +541,7 @@ if (empty($reshook)) {
|
|||
if ($result < 0) {
|
||||
$error++;
|
||||
$mesg = 'Failed to get bar code type information ';
|
||||
setEventMessages($mesg.$stdobject->error, $mesg.$stdobject->errors, 'errors');
|
||||
setEventMessages($mesg.$stdobject->error, $stdobject->errors, 'errors');
|
||||
}
|
||||
$object->barcode_type_code = $stdobject->barcode_type_code;
|
||||
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
||||
|
|
@ -780,7 +780,7 @@ if (empty($reshook)) {
|
|||
if ($result < 0) {
|
||||
$error++;
|
||||
$mesg = 'Failed to get bar code type information ';
|
||||
setEventMessages($mesg.$stdobject->error, $mesg.$stdobject->errors, 'errors');
|
||||
setEventMessages($mesg.$stdobject->error, $stdobject->errors, 'errors');
|
||||
}
|
||||
$object->barcode_type_code = $stdobject->barcode_type_code;
|
||||
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
||||
|
|
|
|||
|
|
@ -570,11 +570,11 @@ if (empty($reshook)) {
|
|||
if (!empty($object->email) && !isValidEMail($object->email)) {
|
||||
$langs->load("errors");
|
||||
$error++;
|
||||
setEventMessages('', $langs->trans("ErrorBadEMail", $object->email), 'errors');
|
||||
setEventMessages($langs->trans("ErrorBadEMail", $object->email), null, 'errors');
|
||||
}
|
||||
if (!empty($object->url) && !isValidUrl($object->url)) {
|
||||
$langs->load("errors");
|
||||
setEventMessages('', $langs->trans("ErrorBadUrl", $object->url), 'errors');
|
||||
setEventMessages($langs->trans("ErrorBadUrl", $object->url), null, 'errors');
|
||||
}
|
||||
if (!empty($object->webservices_url)) {
|
||||
//Check if has transport, without any the soap client will give error
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user