Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedsch committed Feb 28, 2019
1 parent d072002 commit bc8a01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/YamlGetterSetterTrait.php
Expand Up @@ -33,7 +33,7 @@ public function __get($strKey)
$value = null;
if (!is_null($this->arrData[static::$strYamlColumn])) {
$yamlString = $this->arrData[static::$strYamlColumn];
if (!empty($jsonString)) {
if (!empty($yamlString)) {
try {
$yamlData = Yaml::parse($yamlString);
$value = isset($yamlData[$strKey]) ? $yamlData[$strKey] : null;
Expand Down

0 comments on commit bc8a01c

Please sign in to comment.