mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 11:08:34 +01:00
php8
This commit is contained in:
@@ -127,7 +127,7 @@ class box_external_rss extends ModeleBoxes
|
||||
// Feed common fields
|
||||
$href = $item['link'];
|
||||
$title = urldecode($item['title']);
|
||||
$date = $item['date_timestamp']; // date will be empty if conversion into timestamp failed
|
||||
$date = empty($item['date_timestamp']) ? null : $item['date_timestamp']; // date will be empty if conversion into timestamp failed
|
||||
if ($rssparser->getFormat() == 'rss') { // If RSS
|
||||
if (!$date && isset($item['pubdate'])) {
|
||||
$date = $item['pubdate'];
|
||||
|
||||
@@ -2988,7 +2988,7 @@ function dol_print_phone($phone, $countrycode = '', $cid = 0, $socid = 0, $addli
|
||||
if (!empty($conf->global->MAIN_PHONE_SEPAR)) {
|
||||
$separ = $conf->global->MAIN_PHONE_SEPAR;
|
||||
}
|
||||
if (empty($countrycode)) {
|
||||
if (empty($countrycode) && is_object($mysoc)) {
|
||||
$countrycode = $mysoc->country_code;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user