Browse Source

undefined index fix

Stortebeker 6 years ago
parent
commit
a8f058a1c6
1 changed files with 27 additions and 27 deletions
  1. 27
    27
      sections/user/edit.php

+ 27
- 27
sections/user/edit.php View File

207
         <td>
207
         <td>
208
           <ul class="options_list nobullet">
208
           <ul class="options_list nobullet">
209
             <li>
209
             <li>
210
-              <input type="radio" name="searchtype" id="search_type_simple" value="0"<?=$SiteOptions['SearchType'] == 0 ? ' checked="checked"' : ''?> />
210
+              <input type="radio" name="searchtype" id="search_type_simple" value="0"<?=$SiteOptions  ?? 'SearchType' == 0 ? ' checked="checked"' : ''?> />
211
               <label for="search_type_simple">Simple</label>
211
               <label for="search_type_simple">Simple</label>
212
             </li>
212
             </li>
213
             <li>
213
             <li>
214
-              <input type="radio" name="searchtype" id="search_type_advanced" value="1"<?=$SiteOptions['SearchType'] == 1 ? ' checked="checked"' : ''?> />
214
+              <input type="radio" name="searchtype" id="search_type_advanced" value="1"<?=$SiteOptions ?? 'SearchType' == 1 ? ' checked="checked"' : ''?> />
215
               <label for="search_type_advanced">Advanced</label>
215
               <label for="search_type_advanced">Advanced</label>
216
             </li>
216
             </li>
217
           </ul>
217
           </ul>
222
         <td class="label tooltip" title="Enabling torrent grouping will place multiple formats of the same torrent group together beneath a common header."><strong>Torrent grouping</strong></td>
222
         <td class="label tooltip" title="Enabling torrent grouping will place multiple formats of the same torrent group together beneath a common header."><strong>Torrent grouping</strong></td>
223
         <td>
223
         <td>
224
           <div class="option_group">
224
           <div class="option_group">
225
-            <input type="checkbox" name="disablegrouping" id="disablegrouping"<?=$SiteOptions['DisableGrouping2'] == 0 ? ' checked="checked"' : ''?> />
225
+            <input type="checkbox" name="disablegrouping" id="disablegrouping"<?=$SiteOptions ?? 'DisableGrouping2' == 0 ? ' checked="checked"' : ''?> />
226
             <label for="disablegrouping">Enable torrent grouping</label>
226
             <label for="disablegrouping">Enable torrent grouping</label>
227
           </div>
227
           </div>
228
         </td>
228
         </td>
233
           <div class="option_group">
233
           <div class="option_group">
234
             <ul class="options_list nobullet">
234
             <ul class="options_list nobullet">
235
               <li>
235
               <li>
236
-                <input type="radio" name="torrentgrouping" id="torrent_grouping_open" value="0"<?=$SiteOptions['TorrentGrouping'] == 0 ? ' checked="checked"' : ''?> />
236
+                <input type="radio" name="torrentgrouping" id="torrent_grouping_open" value="0"<?=$SiteOptions ?? 'TorrentGrouping' == 0 ? ' checked="checked"' : ''?> />
237
                 <label for="torrent_grouping_open">Open</label>
237
                 <label for="torrent_grouping_open">Open</label>
238
               </li>
238
               </li>
239
               <li>
239
               <li>
240
-                <input type="radio" name="torrentgrouping" id="torrent_grouping_closed" value="1"<?=$SiteOptions['TorrentGrouping'] == 1 ? ' checked="checked"' : ''?> />
240
+                <input type="radio" name="torrentgrouping" id="torrent_grouping_closed" value="1"<?=$SiteOptions ?? 'TorrentGrouping' == 1 ? ' checked="checked"' : ''?> />
241
                 <label for="torrent_grouping_closed">Closed</label>
241
                 <label for="torrent_grouping_closed">Closed</label>
242
               </li>
242
               </li>
243
             </ul>
243
             </ul>
247
       <tr id="tor_snatched_tr">
247
       <tr id="tor_snatched_tr">
248
         <td class="label tooltip" title="Enabling the snatched torrents indicator will display &quot;Snatched!&quot; next to torrents you've snatched."><strong>Snatched torrents indicator</strong></td>
248
         <td class="label tooltip" title="Enabling the snatched torrents indicator will display &quot;Snatched!&quot; next to torrents you've snatched."><strong>Snatched torrents indicator</strong></td>
249
         <td>
249
         <td>
250
-          <input type="checkbox" name="showsnatched" id="showsnatched"<?=!empty($SiteOptions['ShowSnatched']) ? ' checked="checked"' : ''?> />
250
+          <input type="checkbox" name="showsnatched" id="showsnatched"<?=!empty($SiteOptions ?? 'ShowSnatched') ? ' checked="checked"' : ''?> />
251
           <label for="showsnatched">Enable snatched torrents indicator</label>
251
           <label for="showsnatched">Enable snatched torrents indicator</label>
252
         </td>
252
         </td>
253
       </tr>
253
       </tr>
254
       <tr id="tor_magnet_tr">
254
       <tr id="tor_magnet_tr">
255
         <td class="label tooltip" title="Magnet links should only be used on clients with DHT disabled globally"><strong>Magnet links</strong></td>
255
         <td class="label tooltip" title="Magnet links should only be used on clients with DHT disabled globally"><strong>Magnet links</strong></td>
256
         <td>
256
         <td>
257
-          <input type="checkbox" name="showmagnets" id="showmagnets"<?=!empty($SiteOptions['ShowMagnets']) ? ' checked="checked"' : '' ?> />
257
+          <input type="checkbox" name="showmagnets" id="showmagnets"<?=!empty($SiteOptions ?? 'ShowMagnets') ? ' checked="checked"' : '' ?> />
258
           <label for="showmagnets">Show magnet links</label>
258
           <label for="showmagnets">Show magnet links</label>
259
         </td>
259
         </td>
260
       </tr>
260
       </tr>
275
           <ul class="options_list nobullet">
275
           <ul class="options_list nobullet">
276
             <li>
276
             <li>
277
               <input type="hidden" name="coverart" value="" />
277
               <input type="hidden" name="coverart" value="" />
278
-              <input type="checkbox" name="coverart" id="coverart"<?=!isset($SiteOptions['CoverArt']) || $SiteOptions['CoverArt'] ? ' checked="checked"' : ''?> />
278
+              <input type="checkbox" name="coverart" id="coverart"<?=!isset($SiteOptions['CoverArt']) || $SiteOptions ?? 'CoverArt' ? ' checked="checked"' : ''?> />
279
               <label for="coverart">Enable cover artwork</label>
279
               <label for="coverart">Enable cover artwork</label>
280
             </li>
280
             </li>
281
             <li>
281
             <li>
282
-              <input type="checkbox" name="show_extra_covers" id="show_extra_covers"<?=$SiteOptions['ShowExtraCovers'] ? ' checked="checked"' : ''?> />
282
+              <input type="checkbox" name="show_extra_covers" id="show_extra_covers"<?=$SiteOptions ?? 'ShowExtraCovers' ? ' checked="checked"' : ''?> />
283
               <label for="show_extra_covers">Enable additional cover artwork</label>
283
               <label for="show_extra_covers">Enable additional cover artwork</label>
284
             </li>
284
             </li>
285
           </ul>
285
           </ul>
289
         <td class="label tooltip" title="This option allows you to change the number of album covers to display within a single collection page."><strong>Cover art (collections)</strong></td>
289
         <td class="label tooltip" title="This option allows you to change the number of album covers to display within a single collection page."><strong>Cover art (collections)</strong></td>
290
         <td>
290
         <td>
291
           <select name="collagecovers" id="collagecovers">
291
           <select name="collagecovers" id="collagecovers">
292
-            <option value="10"<?=$SiteOptions['CollageCovers'] == 10 ? ' selected="selected"' : ''?>>10</option>
293
-            <option value="25"<?=($SiteOptions['CollageCovers'] == 25 || !isset($SiteOptions['CollageCovers'])) ? ' selected="selected"' : ''?>>25 (default)</option>
294
-            <option value="50"<?=$SiteOptions['CollageCovers'] == 50 ? ' selected="selected"' : ''?>>50</option>
295
-            <option value="100"<?=$SiteOptions['CollageCovers'] == 100 ? ' selected="selected"' : ''?>>100</option>
296
-            <option value="1000000"<?=$SiteOptions['CollageCovers'] == 1000000 ? ' selected="selected"' : ''?>>All</option>
297
-            <option value="0"<?=($SiteOptions['CollageCovers'] === 0 || (!isset($SiteOptions['CollageCovers']) && $SiteOptions['HideCollage'])) ? ' selected="selected"' : ''?>>None</option>
292
+            <option value="10"<?=$SiteOptions ?? 'CollageCovers' == 10 ? ' selected="selected"' : ''?>>10</option>
293
+            <option value="25"<?=($SiteOptions ?? 'CollageCovers' == 25 || !isset($SiteOptions['CollageCovers'])) ? ' selected="selected"' : ''?>>25 (default)</option>
294
+            <option value="50"<?=$SiteOptions ?? 'CollageCovers' == 50 ? ' selected="selected"' : ''?>>50</option>
295
+            <option value="100"<?=$SiteOptions ?? 'CollageCovers' == 100 ? ' selected="selected"' : ''?>>100</option>
296
+            <option value="1000000"<?=$SiteOptions ?? 'CollageCovers' == 1000000 ? ' selected="selected"' : ''?>>All</option>
297
+            <option value="0"<?=($SiteOptions ?? 'CollageCovers' === 0 || (!isset($SiteOptions['CollageCovers']) && $SiteOptions['HideCollage'])) ? ' selected="selected"' : ''?>>None</option>
298
           </select>
298
           </select>
299
           covers per page
299
           covers per page
300
         </td>
300
         </td>
318
         <td class="label tooltip" title="Autocomplete will try to predict the word or phrase that you're typing. Selecting &quot;Everywhere&quot; will enable autocomplete on artist and tag fields across the site. Selecting &quot;Searches only&quot; will enable autocomplete in searches."><strong>Autocompletion</strong></td>
318
         <td class="label tooltip" title="Autocomplete will try to predict the word or phrase that you're typing. Selecting &quot;Everywhere&quot; will enable autocomplete on artist and tag fields across the site. Selecting &quot;Searches only&quot; will enable autocomplete in searches."><strong>Autocompletion</strong></td>
319
         <td>
319
         <td>
320
           <select name="autocomplete">
320
           <select name="autocomplete">
321
-            <option value="0"<?=empty($SiteOptions['AutoComplete']) ? ' selected="selected"' : ''?>>Everywhere</option>
322
-            <option value="2"<?=$SiteOptions['AutoComplete'] === 2 ? ' selected="selected"' : ''?>>Searches only</option>
323
-            <option value="1"<?=$SiteOptions['AutoComplete'] === 1 ? ' selected="selected"' : ''?>>Disable</option>
321
+            <option value="0"<?=empty($SiteOptions ?? 'AutoComplete') ? ' selected="selected"' : ''?>>Everywhere</option>
322
+            <option value="2"<?=$SiteOptions ?? 'AutoComplete' === 2 ? ' selected="selected"' : ''?>>Searches only</option>
323
+            <option value="1"<?=$SiteOptions ?? 'AutoComplete' === 1 ? ' selected="selected"' : ''?>>Disable</option>
324
           </select>
324
           </select>
325
         </td>
325
         </td>
326
       </tr>
326
       </tr>
329
         <td>
329
         <td>
330
           <ul class="nobullet">
330
           <ul class="nobullet">
331
             <li>
331
             <li>
332
-              <input type="checkbox" name="hide_lolicon" id="hide_lolicon"<?=($SiteOptions['HideLolicon']) ? ' checked="checked"' : ''?> />
332
+              <input type="checkbox" name="hide_lolicon" id="hide_lolicon"<?=($SiteOptions ?? 'HideLolicon') ? ' checked="checked"' : ''?> />
333
               <label for="hide_lolicon">Hide results with Lolicon, Shotacon, or Toddlercon</label>
333
               <label for="hide_lolicon">Hide results with Lolicon, Shotacon, or Toddlercon</label>
334
             </li>
334
             </li>
335
             <li>
335
             <li>
336
-              <input type="checkbox" name="hide_scat" id="hide_scat"<?=($SiteOptions['HideScat']) ? ' checked="checked"' : ''?> />
336
+              <input type="checkbox" name="hide_scat" id="hide_scat"<?=($SiteOptions ?? 'HideScat') ? ' checked="checked"' : ''?> />
337
               <label for="hide_scat">Hide results with Scat</label>
337
               <label for="hide_scat">Hide results with Scat</label>
338
             </li>
338
             </li>
339
             <li>
339
             <li>
340
-              <input type="checkbox" name="hide_snuff" id="hide_snuff"<?=($SiteOptions['HideSnuff']) ? ' checked="checked"' : ''?> />
340
+              <input type="checkbox" name="hide_snuff" id="hide_snuff"<?=($SiteOptions ?? 'HideSnuff') ? ' checked="checked"' : ''?> />
341
               <label for="hide_snuff">Hide results with Snuff</label>
341
               <label for="hide_snuff">Hide results with Snuff</label>
342
             </li>
342
             </li>
343
           </ul>
343
           </ul>
354
         <td class="label tooltip" title="This option allows you to set the desired number of displayed posts per page within forum threads."><strong>Posts per page (forums)</strong></td>
354
         <td class="label tooltip" title="This option allows you to set the desired number of displayed posts per page within forum threads."><strong>Posts per page (forums)</strong></td>
355
         <td>
355
         <td>
356
           <select name="postsperpage" id="postsperpage">
356
           <select name="postsperpage" id="postsperpage">
357
-            <option value="25"<?=$SiteOptions['PostsPerPage'] == 25 ? ' selected="selected"' : ''?>>25 (default)</option>
358
-            <option value="50"<?=$SiteOptions['PostsPerPage'] == 50 ? ' selected="selected"' : ''?>>50</option>
359
-            <option value="100"<?=$SiteOptions['PostsPerPage'] == 100 ? ' selected="selected"' : ''?>>100</option>
357
+            <option value="25"<?=$SiteOptions ?? 'PostsPerPage' == 25 ? ' selected="selected"' : ''?>>25 (default)</option>
358
+            <option value="50"<?=$SiteOptions ?? 'PostsPerPage' == 50 ? ' selected="selected"' : ''?>>50</option>
359
+            <option value="100"<?=$SiteOptions ?? 'PostsPerPage' == 100 ? ' selected="selected"' : ''?>>100</option>
360
           </select>
360
           </select>
361
           posts per page
361
           posts per page
362
         </td>
362
         </td>
371
       <tr id="comm_emot_tr">
371
       <tr id="comm_emot_tr">
372
         <td class="label tooltip" title="Emoticons are small images which replace traditional text-based &quot;smileys&quot; like :) or :("><strong>Emoticons</strong></td>
372
         <td class="label tooltip" title="Emoticons are small images which replace traditional text-based &quot;smileys&quot; like :) or :("><strong>Emoticons</strong></td>
373
         <td>
373
         <td>
374
-          <input type="checkbox" name="disablesmileys" id="disablesmileys"<?=!empty($SiteOptions['DisableSmileys']) ? ' checked="checked"' : ''?> />
374
+          <input type="checkbox" name="disablesmileys" id="disablesmileys"<?=!empty($SiteOptions ?? 'DisableSmileys') ? ' checked="checked"' : ''?> />
375
           <label for="disablesmileys">Disable emoticons</label>
375
           <label for="disablesmileys">Disable emoticons</label>
376
         </td>
376
         </td>
377
       </tr>
377
       </tr>
379
         <td class="label tooltip" title="This option allows you to disable all avatars or show all avatars with a placeholder for users without avatars." data-title-plain="This option allows you to disable all avatars or show all avatars with a placeholder for users without avatars."><strong>Avatar display (posts)</strong></td>
379
         <td class="label tooltip" title="This option allows you to disable all avatars or show all avatars with a placeholder for users without avatars." data-title-plain="This option allows you to disable all avatars or show all avatars with a placeholder for users without avatars."><strong>Avatar display (posts)</strong></td>
380
         <td>
380
         <td>
381
           <select name="disableavatars" id="disableavatars">
381
           <select name="disableavatars" id="disableavatars">
382
-            <option value="1"<?=$SiteOptions['DisableAvatars'] == 1 ? ' selected="selected"' : ''?>>Disable avatars</option>
383
-            <option value="0"<?=$SiteOptions['DisableAvatars'] == 0 ? ' selected="selected"' : ''?>>Show avatars</option>
382
+            <option value="1"<?=$SiteOptions ?? 'DisableAvatars' == 1 ? ' selected="selected"' : ''?>>Disable avatars</option>
383
+            <option value="0"<?=$SiteOptions ?? 'DisableAvatars' == 0 ? ' selected="selected"' : ''?>>Show avatars</option>
384
           </select>
384
           </select>
385
         </td>
385
         </td>
386
       </tr>
386
       </tr>

Loading…
Cancel
Save