Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
bb3e393d
Commit
bb3e393d
authored
2 years ago
by
hahn
Browse files
Options
Downloads
Patches
Plain Diff
remove array_key_exists()
parent
9c7d26b1
Branches
Branches containing commit
No related tags found
1 merge request
!29
remove array_key_exists()
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public_html/deployment/pages/act_phase.php
+5
-5
5 additions, 5 deletions
public_html/deployment/pages/act_phase.php
with
5 additions
and
5 deletions
public_html/deployment/pages/act_phase.php
+
5
−
5
View file @
bb3e393d
...
...
@@ -20,7 +20,7 @@ require_once("./classes/config-replacement.class.php");
$oPrj
=
new
project
(
$aParams
[
"prj"
]);
$sOut
=
''
;
if
(
array_key_exists
(
"par3"
,
$aParams
))
{
if
(
isset
(
$aParams
[
"par3"
]
))
{
$sPhase
=
$aParams
[
"par3"
];
}
...
...
@@ -76,7 +76,7 @@ if ($sPhase) {
foreach
(
$aReplacements
as
$sFile
=>
$aFields
)
{
$tTplFile
=
basename
(
$sFile
);
$bFileInForeman
=
$aReplacementsForeman
&&
array_key_exists
(
$tTplFile
,
$aReplacementsForeman
);
$bFileInForeman
=
$aReplacementsForeman
&&
isset
(
$aReplacementsForeman
[
$tTplFile
]
);
$sDivIdFile
=
'div4file-'
.
md5
(
$sFile
);
$sOutReplace
.
=
'<h4>'
.
...
...
@@ -90,7 +90,7 @@ if ($sPhase) {
;
// --- check: does this file in foreman exist?
if
(
!
array_key_exists
(
$tTplFile
,
$aReplacementsForeman
)){
if
(
!
isset
(
$aReplacementsForeman
[
$tTplFile
]
)){
if
(
$aReplacementsForeman
){
$sOutReplace
.
=
$oHtml
->
getBox
(
'error'
,
t
(
'foreman-error-template-unknown'
));
$aWarnings
[]
=
$tTplFile
.
': '
.
t
(
'foreman-error-template-unknown'
);
...
...
@@ -101,7 +101,7 @@ if ($sPhase) {
// --- check: target file was set?
$aTable
=
array
(
'header'
=>
array
(),
'body'
=>
array
());
if
(
$bFileInForeman
){
if
(
$aReplacementsForeman
&&
array_key_exists
(
'target'
,
$aReplacementsForeman
[
$tTplFile
])){
if
(
$aReplacementsForeman
&&
isset
(
$aReplacementsForeman
[
$tTplFile
]
[
'target'
]
)){
$sTd
=
'<strong>'
.
$oHtml
->
getIcon
(
'file-target'
)
.
$aReplacementsForeman
[
$tTplFile
][
'target'
]
.
'</strong>'
;
}
else
{
if
(
$bFileInForeman
){
...
...
@@ -121,7 +121,7 @@ if ($sPhase) {
// and check if they exist in foreman
if
(
count
(
$aFields
))
{
foreach
(
$aFields
as
$sField
){
if
(
$aReplacementsForeman
&&
array_key_exists
(
$sField
,
$aReplacementsForeman
[
$tTplFile
][
'replace'
])){
if
(
$aReplacementsForeman
&&
isset
(
$aReplacementsForeman
[
$tTplFile
][
'replace'
]
[
$sField
]
)){
$sTd
=
$aReplacementsForeman
[
$tTplFile
][
'replace'
][
$sField
];
}
else
{
if
(
$bFileInForeman
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment