mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +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)
|
||||
{
|
||||
if (!isset($this->labels[$code]) && $substitute) {
|
||||
if (empty($this->labels[$code]) && $substitute) {
|
||||
return $this->get_name();
|
||||
} elseif (isset($this->labels[$code])) {
|
||||
return $this->labels[$code];
|
||||
|
Reference in New Issue
Block a user