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
legi
soft
gestex
Commits
94ed9ab2
Commit
94ed9ab2
authored
Sep 29, 2020
by
Gabriel Moreau
Browse files
Error in variable
parent
e91ac17a
Changes
1
Show whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
94ed9ab2
...
...
@@ -168,7 +168,7 @@ function set_equipment_new($pdo, $categorie, $nom, $modele, $gamme, $equipe, $fo
$status
=
$stmt
->
execute
(
array
(
$categorie
,
$nom
,
$modele
,
$gamme
,
$equipe
,
$fourn
,
$achat
,
$tech
,
$reparation
,
$accessoires
,
$inventaire
,
$notice
,
$barcode
,
$loanable
));
$err_msg
=
''
;
if
(
!
$status
)
$err_msg
$arr
=
$stmt
->
errorInfo
()[
2
];
$err_msg
=
$stmt
->
errorInfo
()[
2
];
return
array
(
$pdo
->
lastInsertId
(),
$err_msg
);
}
...
...
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