Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
638bf4f8
Commit
638bf4f8
authored
Apr 05, 2011
by
Walid Nouh
Browse files
[0.72] improve values checks in the cache to avoid duplicates (in case of multithreaded ocs import)
parent
cc4d26c2
Changes
1
Show whitespace changes
Inline
Side-by-side
inc/rulesengine.class.php
View file @
638bf4f8
...
...
@@ -2362,7 +2362,7 @@ class RuleCachedCollection extends RuleCollection{
if
(
$res_check
=
$DB
->
query
(
$sql
)){
$output_values
=
array
();
if
(
$DB
->
numrows
(
$res_check
)
==
1
){
if
(
$DB
->
numrows
(
$res_check
)
>
0
){
$data
=
$DB
->
fetch_assoc
(
$res_check
);
foreach
(
$this
->
cache_params
[
"output_value"
]
as
$param
=>
$param_value
){
if
(
isset
(
$data
[
$param_value
])){
...
...
Write
Preview
Supports
Markdown
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