Commit 3b2bc96f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix failure to create invisible view access key

parent b6cafd85
......@@ -2334,7 +2334,7 @@ class View {
$data = new StdClass;
$data->view = $viewid;
$data->visible = $visible;
$data->visible = (int) $visible;
$data->token = random_string(20);
while (record_exists('view_access_token', 'token', $data->token)) {
$data->token = random_string(20);
......
Supports Markdown
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