mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Only attempt to show initials if not empty
This commit is contained in:
1
email_parser_cron.php
Normal file
1
email_parser_cron.php
Normal file
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user