Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed enc_checked to work with new int-based checkbox
[wfpl.git]
/
encode.php
diff --git
a/encode.php
b/encode.php
index
d37d1fa
..
6d386b3
100644
(file)
--- a/
encode.php
+++ b/
encode.php
@@
-99,7
+99,7
@@
function enc_url_path($str) {
#
# Example: <input type="checkbox" name="foo~foo.checked~">
function enc_checked($str) {
- if($str == 'Yes') {
+ if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') {
return '" checked="checked';
} else {
return '';