Skip to content

Commit

Permalink
Chenged kind of check for undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
knowthelist committed Mar 17, 2015
1 parent 72e387c commit 75e575c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/fhem-tablet-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function requestFhem(paraname) {
}

this.getPart = function (s,p) {
var c = (s !== undefined) ? s.split(" ") : '';
var c = (typeof s != "undefined") ? s.split(" ") : '';
return (c.length >= p && p>0 ) ? c[p-1] : s;
};

Expand Down

0 comments on commit 75e575c

Please sign in to comment.