mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 00:29:21 +01:00
LSattribute: fix canBeGenerated() when default_value isn't a string
This commit is contained in:
parent
1da0693138
commit
852b375964
1 changed files with 2 additions and 5 deletions
|
@ -454,14 +454,11 @@ class LSattribute extends LSlog_staticLoggerClass {
|
||||||
*/
|
*/
|
||||||
public function canBeGenerated() {
|
public function canBeGenerated() {
|
||||||
$format = $this -> getConfig('generate_value_format', $this -> getConfig('default_value'));
|
$format = $this -> getConfig('generate_value_format', $this -> getConfig('default_value'));
|
||||||
|
self :: log_debug($this."->canBeGenerated(): format='$format'");
|
||||||
return (
|
return (
|
||||||
(function_exists($this -> getConfig('generate_function')))
|
(function_exists($this -> getConfig('generate_function')))
|
||||||
||
|
||
|
||||||
(
|
!is_empty($format)
|
||||||
(is_string($format))
|
|
||||||
&&
|
|
||||||
(strlen($format) > 0)
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue