[www-doc] [Git][VideoLAN.org/websites][master] skipDataase: check that variables arent empty when set.
Konstantin Pavlov (@thresh)
gitlab at videolan.org
Wed May 11 18:41:00 UTC 2022
Konstantin Pavlov pushed to branch master at VideoLAN organization / websites
Commits:
788723c3 by Konstantin Pavlov at 2022-05-11T22:39:34+04:00
skipDataase: check that variables arent empty when set.
- - - - -
1 changed file:
- www.videolan.org/include/developer.php
Changes:
=====================================
www.videolan.org/include/developer.php
=====================================
@@ -6,7 +6,7 @@ function isDeveloper() {
}
function skipDatabase() {
- return isset($_ENV['SKIP_DATABASE']) || isset($_SERVER['SKIP_DATABASE']);
+ return (isset($_ENV['SKIP_DATABASE']) && !empty($_ENV['SKIP_DATABASE'])) || (isset($_SERVER['SKIP_DATABASE']) && !empty($_SERVER['SKIP_DATABASE']));
}
?>
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/788723c391860877252aee3ea0b507407ec0708c
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/788723c391860877252aee3ea0b507407ec0708c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the www-doc
mailing list