Skip to content

Instantly share code, notes, and snippets.

@fejese
Created January 12, 2015 14:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fejese/aa2a7b54f6a2b6704d4f to your computer and use it in GitHub Desktop.
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