Changeset 6342
- Timestamp:
- May 24, 2010, 10:44:55 PM (15 years ago)
- Location:
- branches/2.1/include/dblayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/dblayer/functions_pdo-sqlite.inc.php
r6153 r6342 468 468 function boolean_to_string($var) 469 469 { 470 if ( !empty($var) && ($var == 'true'))471 { 472 return 'true';470 if (is_bool($var)) 471 { 472 return $var ? 'true' : 'false'; 473 473 } 474 474 else 475 475 { 476 return 'false';476 return $var; 477 477 } 478 478 } -
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 } -
branches/2.1/include/dblayer/functions_sqlite.inc.php
r6153 r6342 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.