Skip to content

Instantly share code, notes, and snippets.

@fejese
Created January 12, 2015 14:26
Embed
What would you like to do?
fix for #99
diff --git a/src/*/AppBundle/Entity/TagTrait.php b/src/*/AppBundle/Entity/TagTrait.php
index 2024712..d7d2465 100644
--- a/src/*/AppBundle/Entity/TagTrait.php
+++ b/src/*/AppBundle/Entity/TagTrait.php
@@ -62,6 +62,6 @@ trait TagTrait
public function __toString()
{
- return ($this->getValue()) ? : '';
+ return (is_null($this->getValue())) ? '' : $this->getValue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment