Skip to content

Commit

Permalink
Update PageVersion.php
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-jennings authored Jan 27, 2020
1 parent 3c01261 commit 4d0bed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/PageVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function prepareNew($label = null)
$pageVersion = new static;
$pageVersion->version_id = 1;
$pageVersion->label = $label;
$pageVersion->preview_key = base_convert((rand(10, 99) . microtime(true)), 10, 36);
$pageVersion->preview_key = base_convert((int) (rand(10, 99) . microtime(true)), 10, 36);
return $pageVersion;
}

Expand Down

0 comments on commit 4d0bed0

Please sign in to comment.