|
@@ 888-889 (lines=2) @@
|
| 885 |
|
if ($this->logErrors) { |
| 886 |
|
// Try to get a name (label or name) |
| 887 |
|
if (class_exists('kw')) { |
| 888 |
|
if (isset($data['label'])) $this->errors .= 'Found an error in field' . ': "' . $data['label'] . '": '; |
| 889 |
|
elseif (isset($data['name'])) $this->errors .= 'Found an error in field' . ': "' . $data['name'] . '": '; |
| 890 |
|
} else { |
| 891 |
|
if (isset($data['label'])) $this->errors .= 'Found an error in field' . $data['label'] . '": '; |
| 892 |
|
elseif (isset($data['name'])) $this->errors .= 'Found an error in field' . ': "' . $data['name'] . '": '; |
|
@@ 890-893 (lines=4) @@
|
| 887 |
|
if (class_exists('kw')) { |
| 888 |
|
if (isset($data['label'])) $this->errors .= 'Found an error in field' . ': "' . $data['label'] . '": '; |
| 889 |
|
elseif (isset($data['name'])) $this->errors .= 'Found an error in field' . ': "' . $data['name'] . '": '; |
| 890 |
|
} else { |
| 891 |
|
if (isset($data['label'])) $this->errors .= 'Found an error in field' . $data['label'] . '": '; |
| 892 |
|
elseif (isset($data['name'])) $this->errors .= 'Found an error in field' . ': "' . $data['name'] . '": '; |
| 893 |
|
} |
| 894 |
|
|
| 895 |
|
// preparing message |
| 896 |
|
$this->errors .= ' ' . $message . '.'; |