mirror of
https://github.com/pierre42100/comunic
synced 2024-11-27 15:59:30 +00:00
9 lines
181 B
PHP
9 lines
181 B
PHP
<?php
|
|
|
|
function blueprint_data_option_test(array $param = null, $sort = false)
|
|
{
|
|
if ($sort) {
|
|
asort($param);
|
|
}
|
|
return $param ?: ['yes' => 'Yes', 'no' => 'No'];
|
|
} |