Created
January 12, 2015 14:26
-
-
Save fejese/aa2a7b54f6a2b6704d4f to your computer and use it in GitHub Desktop.
fix for #99
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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