Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for State of 0 #259

Merged
merged 1 commit into from
Sep 27, 2013
Merged

Allow for State of 0 #259

merged 1 commit into from
Sep 27, 2013

Conversation

krkeegan
Copy link
Collaborator

Fixes two things:

  • Allows for a State of 0 to be recorded in the state log
  • Allows for a State of 0 to be displyed through the web interface rather than N/A

Both issues arise from the use of conditional statements such as:

if($state){...}

rather than using

if(defined($state)){...}

As a result a state of 0 was always ignored.

Fixes two things:
- Allows for a State of 0 to be recorded in the state log
- Allows for a State of 0 to be displyed through the web interface rather than N/A

Both issues arise from the use of conditional statements such as:
```
if($state){...}
```
rather than using
```
if(defined($state)){...}
```
As a result a state of 0 was always ignored.
krkeegan added a commit that referenced this pull request Sep 27, 2013
@krkeegan krkeegan merged commit 86b5d72 into hollie:master Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant