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) {
|
function initials($str) {
|
||||||
$ret = '';
|
if(!empty($str)){
|
||||||
foreach (explode(' ', $str) as $word)
|
$ret = '';
|
||||||
$ret .= strtoupper($word[0]);
|
foreach (explode(' ', $str) as $word)
|
||||||
return $ret;
|
$ret .= strtoupper($word[0]);
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeDirectory($path) {
|
function removeDirectory($path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user