Changeset 6342 for branches/2.1/include/dblayer/functions_pgsql.inc.php
- Timestamp:
- May 24, 2010, 10:44:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/dblayer/functions_pgsql.inc.php
r6090 r6342 511 511 function boolean_to_string($var) 512 512 { 513 if ( !empty($var) && ($var == 't'))514 { 515 return 'true';513 if (is_bool($var)) 514 { 515 return $var ? 'true' : 'false'; 516 516 } 517 517 else 518 518 { 519 return 'false';519 return $var; 520 520 } 521 521 }
Note: See TracChangeset
for help on using the changeset viewer.