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
druid-public
headwork
Commits
ab853c31
Commit
ab853c31
authored
May 03, 2021
by
GROSS-AMBLARD David
Browse files
Fixes small bug on profile when undefined. Default value is now 2 (sometimes).
parent
79d8c757
Changes
1
Hide whitespace changes
Inline
Side-by-side
profile.php
View file @
ab853c31
...
...
@@ -28,6 +28,10 @@
$stmt
->
execute
();
$result
=
$stmt
->
setFetchMode
(
PDO
::
FETCH_ASSOC
);
$line
=
$stmt
->
fetch
();
if
(
!
$line
){
$line
=
array
();
$line
[
"availability"
]
=
2
;
}
debug
((
int
)
$line
[
"availability"
]);
if
((
int
)
$line
[
"availability"
]
>
250
){
...
...
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