From 409bccb4f0b0f1035bbd427036bdc2905d620613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 27 Jun 2024 16:39:15 +0200 Subject: [PATCH 1/4] fix phan api_workstations.class.php (#30169) * fix api_workstations.class.php * Update api_workstations.class.php * Update api_workstations.class.php * Update api_workstations.class.php * Update html.formwebsite.class.php --- htdocs/core/class/html.formwebsite.class.php | 8 +++---- .../class/api_workstations.class.php | 24 ++++++++----------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/htdocs/core/class/html.formwebsite.class.php b/htdocs/core/class/html.formwebsite.class.php index f3b299a167f..728133c3344 100644 --- a/htdocs/core/class/html.formwebsite.class.php +++ b/htdocs/core/class/html.formwebsite.class.php @@ -135,12 +135,12 @@ class FormWebsite $lasttypecontainer = ''; while ($i < $num) { $obj = $this->db->fetch_object($result); - if (in_array($obj->typecontainer, array('library', 'service'))) { - /*if (!getDolGlobalString('WEBSITE_ADD_PAGE_TYPE_PHPLIB')) { + /*if (in_array($obj->typecontainer, array('library', 'service'))) { + if (!getDolGlobalString('WEBSITE_ADD_PAGE_TYPE_PHPLIB')) { $i++; continue; - }*/ - } + } + }*/ if ($obj->typecontainer != $lasttypecontainer) { $out .= '