Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed Jul 30, 2014
1 parent 72d5080 commit 15b1879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/vis/vis_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function vis_controller()
$array[$key] = $feedid;
$array[$key.'name'] = $f['name'];

if ($f['userid']!=$session['userid'] || $f['datatype']!=$type) $array['valid'] = false;
if ($f['public'] && $f['datatype']==$type) $array['valid'] = true;
if ($f['userid']!=$session['userid']) $array['valid'] = false;
if ($f['public']) $array['valid'] = true;
} else {
$array['valid'] = false;
}
Expand Down Expand Up @@ -144,7 +144,7 @@ function vis_controller()

$result = view("Modules/".$visdir.$viskey.".php", $array);

if ($array['valid'] == false) $result .= "<div style='position:absolute; top:0px; left:0px; background-color:rgba(240,240,240,0.5); width:100%; height:100%; text-align:center; padding-top:100px;'><h3>Feed type or authentication not valid</h3></div>";
if ($array['valid'] == false) $result .= "<div style='position:absolute; top:0px; left:0px; background-color:rgba(240,240,240,0.5); width:100%; height:100%; text-align:center; padding-top:100px;'><h3>Authentication not valid</h3></div>";

}
next($visualisations);
Expand Down

0 comments on commit 15b1879

Please sign in to comment.