Skip to content
Snippets Groups Projects
Commit 7fc6fd0a authored by Fabian Galinski's avatar Fabian Galinski :pouting_cat:
Browse files

[TASK] Strict check on a boolean check within the News domain model

parent 00a85d3d
No related branches found
No related tags found
1 merge request!1Task apply language visibility to the news
......@@ -255,7 +255,7 @@ class News extends CategoryAndNews {
* @return void
*/
public function setNeverHighlighted($neverHighlighted) {
$this->neverHighlighted = ($neverHighlighted === TRUE);
$this->neverHighlighted = ($neverHighlighted == TRUE);
}
/**
......@@ -290,6 +290,4 @@ class News extends CategoryAndNews {
public function setLikes($likes) {
$this->likes = $likes;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment