mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
Improve getCallableName() helper function
This commit is contained in:
parent
d89d75f72b
commit
5f06ec8d28
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ function withoutAccents($string){
|
|||
**/
|
||||
function getCallableName($callable) {
|
||||
if (is_string($callable)) {
|
||||
return $callable;
|
||||
return $callable.'()';
|
||||
}
|
||||
elseif(is_array($callable) && count($callable)==2) {
|
||||
if (is_string($callable[0])) {
|
||||
|
|
Loading…
Reference in a new issue