mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Consider empty labels as not valid
This commit is contained in:
@@ -166,7 +166,7 @@ class databox_subdef
|
|||||||
|
|
||||||
public function get_label($code, $substitute = true)
|
public function get_label($code, $substitute = true)
|
||||||
{
|
{
|
||||||
if (!isset($this->labels[$code]) && $substitute) {
|
if (empty($this->labels[$code]) && $substitute) {
|
||||||
return $this->get_name();
|
return $this->get_name();
|
||||||
} elseif (isset($this->labels[$code])) {
|
} elseif (isset($this->labels[$code])) {
|
||||||
return $this->labels[$code];
|
return $this->labels[$code];
|
||||||
|
Reference in New Issue
Block a user