mirror of https://github.com/itflow-org/itflow
Only attempt to show initials if not empty
This commit is contained in:
parent
69dbb51e93
commit
a0233c77ec
|
|
@ -0,0 +1 @@
|
|||
<?php
|
||||
|
|
@ -35,10 +35,12 @@ function key32gen()
|
|||
}
|
||||
|
||||
function initials($str) {
|
||||
$ret = '';
|
||||
foreach (explode(' ', $str) as $word)
|
||||
$ret .= strtoupper($word[0]);
|
||||
return $ret;
|
||||
if(!empty($str)){
|
||||
$ret = '';
|
||||
foreach (explode(' ', $str) as $word)
|
||||
$ret .= strtoupper($word[0]);
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
function removeDirectory($path) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue