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
ae2
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine
ae2
Commits
eb26e189
Commit
eb26e189
authored
Jul 09, 2013
by
Bate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#23 Un possible fix + des logs
parent
4a113b4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
comptoir/include/comptoir.inc.php
comptoir/include/comptoir.inc.php
+10
-0
No files found.
comptoir/include/comptoir.inc.php
View file @
eb26e189
...
...
@@ -278,6 +278,7 @@ class comptoir extends stdentity
if
(
$req
->
lines
==
0
)
// rien n'a été affecté, donc on re-crée une entrée
{
_log
(
$this
->
dbrw
,
"Entree de tracking absente"
,
serialize
(
debug_backtrace
()),
"Comptoir"
,
$Op
);
$req
=
new
insert
(
$this
->
dbrw
,
"cpt_tracking"
,
array
(
...
...
@@ -387,6 +388,15 @@ class comptoir extends stdentity
$_SESSION
[
"Comptoirs"
][
$this
->
id
][
"operateurs"
][]
=
$user
->
id
;
// On ferme toute entree precedente
$req
=
new
requete
(
$this
->
dbrw
,
"UPDATE `cpt_tracking` SET `closed_time`='"
.
date
(
"Y-m-d H:i:s"
)
.
"'
WHERE `closed_time` IS NULL
AND `id_utilisateur` = '"
.
mysql_real_escape_string
(
$user
->
id
)
.
"'
AND `id_comptoir` = '"
.
mysql_real_escape_string
(
$this
->
id
)
.
"'"
);
if
(
$req
->
lines
!=
0
)
// Ca ne devrait pas arriver
_log
(
$this
->
dbrw
,
"Reconnexion de barman"
,
serialize
(
debug_backtrace
()),
"Comptoir"
,
$user
);
// crée l'entrée de tracking pour le barman
$req
=
new
insert
(
$this
->
dbrw
,
"cpt_tracking"
,
...
...
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