Skip to content

Commit

Permalink
Control: *global* snippet changed from NULL to \0 to be distinguished…
Browse files Browse the repository at this point in the history
… from ''
  • Loading branch information
dg committed Jul 1, 2015
1 parent 183b869 commit d07d7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/UI/Control.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function flashMessage($message, $type = 'info')
public function redrawControl($snippet = NULL, $redraw = TRUE)
{
if ($redraw) {
$this->invalidSnippets[$snippet] = TRUE;
$this->invalidSnippets[$snippet === NULL ? "\0" : $snippet] = TRUE;

} elseif ($snippet === NULL) {
$this->invalidSnippets = [];
Expand Down Expand Up @@ -162,7 +162,7 @@ public function isControlInvalid($snippet = NULL)
}

} else {
return isset($this->invalidSnippets[NULL]) || isset($this->invalidSnippets[$snippet]);
return isset($this->invalidSnippets["\0"]) || isset($this->invalidSnippets[$snippet]);
}
}

Expand Down

0 comments on commit d07d7b3

Please sign in to comment.