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)) {
|
if (!empty($object->url) && !isValidUrl($object->url)) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
setEventMessages('', $langs->trans("ErrorBadUrl", $object->url), 'errors');
|
setEventMessages($langs->trans("ErrorBadUrl", $object->url), null, 'errors');
|
||||||
}
|
}
|
||||||
$public = 0;
|
$public = 0;
|
||||||
if (isset($public)) {
|
if (isset($public)) {
|
||||||
|
|||||||
@ -541,7 +541,7 @@ if (empty($reshook)) {
|
|||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$mesg = 'Failed to get bar code type information ';
|
$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_code = $stdobject->barcode_type_code;
|
||||||
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
||||||
@ -780,7 +780,7 @@ if (empty($reshook)) {
|
|||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++;
|
$error++;
|
||||||
$mesg = 'Failed to get bar code type information ';
|
$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_code = $stdobject->barcode_type_code;
|
||||||
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
$object->barcode_type_coder = $stdobject->barcode_type_coder;
|
||||||
|
|||||||
@ -570,11 +570,11 @@ if (empty($reshook)) {
|
|||||||
if (!empty($object->email) && !isValidEMail($object->email)) {
|
if (!empty($object->email) && !isValidEMail($object->email)) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$error++;
|
$error++;
|
||||||
setEventMessages('', $langs->trans("ErrorBadEMail", $object->email), 'errors');
|
setEventMessages($langs->trans("ErrorBadEMail", $object->email), null, 'errors');
|
||||||
}
|
}
|
||||||
if (!empty($object->url) && !isValidUrl($object->url)) {
|
if (!empty($object->url) && !isValidUrl($object->url)) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
setEventMessages('', $langs->trans("ErrorBadUrl", $object->url), 'errors');
|
setEventMessages($langs->trans("ErrorBadUrl", $object->url), null, 'errors');
|
||||||
}
|
}
|
||||||
if (!empty($object->webservices_url)) {
|
if (!empty($object->webservices_url)) {
|
||||||
//Check if has transport, without any the soap client will give error
|
//Check if has transport, without any the soap client will give error
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user