Skip to content

Commit 8ead432

Browse files
committed
Fix ternary operation
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 760a874 commit 8ead432

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/manifest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function handle(): JsonResponse
6464

6565
$manifest = [
6666
'name' => $this->config['sitename'],
67-
'short_name' => $this->config['pwa_short_name'] ?? substr($this->config['sitename'], 0, 12),
67+
'short_name' => $this->config['pwa_short_name'] ?: substr($this->config['sitename'], 0, 12),
6868
'display' => 'standalone',
6969
'orientation' => 'portrait',
7070
'dir' => $this->language->lang('DIRECTION'),

0 commit comments

Comments
 (0)