Skip to content

Commit

Permalink
Fixed some E_NOTICE errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Sep 16, 2018
1 parent e024405 commit c986e5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions public_html/usersettings.php
Expand Up @@ -1334,21 +1334,25 @@ function savepreferences($A)
}

$TIDS = array();
if (is_array($A['topics'])) {
if (isset($A['topics']) && is_array($A['topics'])) {
$TIDS = array_values($A['topics']); // array of strings
}

$AIDS = array();
if (is_array($A['selauthors'])) {
if (isset($A['selauthors']) && is_array($A['selauthors'])) {
$AIDS = array_values($A['selauthors']); // array of integers
}

$BOXES = array();
if (is_array($A['blocks'])) {
if (isset($A['blocks']) && is_array($A['blocks'])) {
$BOXES = array_values($A['blocks']); // array of integers
}

$ETIDS = array();
if (is_array($A['etids'])) {
if (isset($A['etids']) && is_array($A['etids'])) {
$ETIDS = array_values($A['etids']); // array of strings
}

$AETIDS = USER_getAllowedTopics(); // array of strings (fetched, needed to "clean" $TIDS and $ETIDS)

$tids = '';
Expand Down

0 comments on commit c986e5e

Please sign in to comment.