mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
PHP: Use ?:
This commit is contained in:
2
lang.php
2
lang.php
@@ -28,7 +28,7 @@ foreach (
|
||||
}
|
||||
}
|
||||
|
||||
foreach (glob(__DIR__ . "/adminer/lang/" . ($_SESSION["lang"] ? $_SESSION["lang"] : "*") . ".inc.php") as $filename) {
|
||||
foreach (glob(__DIR__ . "/adminer/lang/" . ($_SESSION["lang"] ?: "*") . ".inc.php") as $filename) {
|
||||
$messages = $messages_all;
|
||||
$file = file_get_contents($filename);
|
||||
$file = str_replace("\r", "", $file);
|
||||
|
Reference in New Issue
Block a user