Only not generate prefix when parameter is false

This commit is contained in:
Michael 2018-02-21 03:37:20 +00:00
parent 5a30dfcf34
commit 6e642ad6d4
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ function check_addons(App $a)
function get_guid($size = 16, $prefix = '')
{
if (is_bool($prefix)) {
if (is_bool($prefix) && !$prefix) {
$prefix = '';
} elseif ($prefix == '') {
$a = get_app();