| @@ -116,10 +116,10 @@ | ||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | foreach ($panodata["scene-list"] as $panoscenes) { |
| 119 | 119 | |
| 120 | - if ($panoscenes['dscene'] == 'on') { | |
| 121 | - $default_scene = $panoscenes['scene-id']; | |
| 120 | + if (($panoscenes['dscene'] ?? 'off') == 'on') { | |
| 121 | + $default_scene = $panoscenes['scene-id'] ?? ''; | |
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | if (empty($default_scene)) { |
| 125 | 125 | if ($allsceneids) { |