Commit ab816b6d authored by Steven Wittens's avatar Steven Wittens
Browse files

- Fix warning due to old session variable.

parent f1929ec5
......@@ -826,7 +826,7 @@ function node_admin_nodes() {
'options' => $terms, 'join' => 'INNER JOIN {term_node} tn ON n.nid = tn.nid'));
// Initialize/reset filters
if (!isset($_SESSION['node_overview_filter']) || $op == t('Reset')) {
if (!isset($_SESSION['node_overview_filter']) || !is_array($_SESSION['node_overview_filter']) || $op == t('Reset')) {
$_SESSION['node_overview_filter'] = array();
}
$session = &$_SESSION['node_overview_filter'];
......
......@@ -826,7 +826,7 @@ function node_admin_nodes() {
'options' => $terms, 'join' => 'INNER JOIN {term_node} tn ON n.nid = tn.nid'));
// Initialize/reset filters
if (!isset($_SESSION['node_overview_filter']) || $op == t('Reset')) {
if (!isset($_SESSION['node_overview_filter']) || !is_array($_SESSION['node_overview_filter']) || $op == t('Reset')) {
$_SESSION['node_overview_filter'] = array();
}
$session = &$_SESSION['node_overview_filter'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment