diff options
author | Paladox <thomasmulhall410@yahoo.com> | 2024-09-21 14:55:19 +0000 |
---|---|---|
committer | Paladox <thomasmulhall410@yahoo.com> | 2024-09-21 19:39:53 +0000 |
commit | ceb0791a3b114cd5453ebac3163052623504025f (patch) | |
tree | ae91beca701121dbf971fce22fd54a24159a56d0 /includes | |
parent | 0db3787aaf9fa097678e956e3ad60a7730954f58 (diff) | |
download | mediawikicore-ceb0791a3b114cd5453ebac3163052623504025f.tar.gz mediawikicore-ceb0791a3b114cd5453ebac3163052623504025f.zip |
SpecialExport: Prevent passing null to strtolower
Change-Id: I89f0776ee5d61b2f58da2115b0a00ad2ddcbfe5a
(cherry picked from commit deb607c3508bb7089581a39efd603387e5030e39)
Diffstat (limited to 'includes')
-rw-r--r-- | includes/specials/SpecialExport.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index f7f0a970cfc5..af913cb31d03 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -171,7 +171,7 @@ class SpecialExport extends SpecialPage { $history['offset'] = $offset; } - if ( strtolower( $dir ) == 'desc' ) { + if ( strtolower( $dir ?? '' ) == 'desc' ) { $history['dir'] = 'desc'; } } |