Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
FlockLab 1 - deprecated
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TEC
P
Public
FlockLab
FlockLab 1 - deprecated
Commits
e9025ca2
Commit
e9025ca2
authored
May 22, 2019
by
Reto Da Forno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fallback to operating system 'other' if unknown OS is specified
parent
8eeb6f9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/webserver/user/include/libflocklab.php
server/webserver/user/include/libflocklab.php
+3
-1
No files found.
server/webserver/user/include/libflocklab.php
View file @
e9025ca2
...
...
@@ -1011,7 +1011,9 @@ function update_add_test($xml_config, &$errors, $existing_test_id = NULL, $abort
foreach
(
$available_platforms
as
$key
=>
$platform
)
if
(
strcasecmp
(
$platform
[
0
][
'name'
],
trim
(
$im
->
platform
))
==
0
)
$im_cpy
[
'platform'
]
=
$key
;
$im_os
=
isset
(
$im
->
os
)
?
trim
(
$im
->
os
)
:
'other'
;
if
(
!
isset
(
$im
->
os
)
||
!
in_array
(
$im
->
os
,
$available_os
))
{
$im_os
=
'other'
;
}
foreach
(
$available_os
as
$key
=>
$os
)
{
if
(
strcasecmp
(
$os
,
$im_os
)
==
0
)
{
$im_cpy
[
'os'
]
=
$key
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment