Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into

develop
This commit is contained in:
Laurent Destailleur
2025-10-30 02:59:33 +01:00
parent cd86879db3
commit 8e9290abd6
2 changed files with 6 additions and 3 deletions

View File

@@ -3565,6 +3565,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
}
// $morehtml is the right part (link "Back to list")
// $morehtmlref is the part after the ref
// $morehtmlleft is the picto or photo of banner
// $morehtmlstatus is part under the status
// $morehtmlright is part of htmlright
@@ -4351,11 +4352,13 @@ function getArrayOfSocialNetworks()
require_once DOL_DOCUMENT_ROOT . '/core/lib/memory.lib.php';
$cachekey = 'socialnetworks_' . $conf->entity;
$dataretrieved = dol_getcache($cachekey);
if (!is_null($dataretrieved)) {
$socialnetworks = $dataretrieved;
} else {
$sql = "SELECT rowid, code, label, url, icon, active FROM " . MAIN_DB_PREFIX . "c_socialnetworks";
$sql .= " WHERE entity =" . ((int) $conf->entity);
$sql .= " WHERE entity = " . ((int) $conf->entity);
$resql = $db->query($sql);
if ($resql) {
while ($obj = $db->fetch_object($resql)) {