Commit 1b7db7b7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning when testing view access


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b0266e2c
......@@ -1613,7 +1613,7 @@ function can_view_view($view_id, $user_id=null) {
if ($a->token == $usertoken && $publicviews) {
return true;
}
if ($mnettoken && $a->token == $mnettoken) {
if (!empty($mnettoken) && $a->token == $mnettoken) {
$mnetviewlist = $SESSION->get('mnetviewaccess');
if (empty($mnetviewlist)) {
$mnetviewlist = array();
......
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