Changeset 6339 for trunk/include/dblayer/functions_sqlite.inc.php
- Timestamp:
- May 24, 2010, 10:12:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_sqlite.inc.php
r6153 r6339 480 480 function boolean_to_string($var) 481 481 { 482 if ( !empty($var) && ($var == 'true'))483 { 484 return 'true';482 if (is_bool($var)) 483 { 484 return $var ? 'true' : 'false'; 485 485 } 486 486 else 487 487 { 488 return 'false';488 return $var; 489 489 } 490 490 }
Note: See TracChangeset
for help on using the changeset viewer.