Changeset 2700 for trunk/include
- Timestamp:
- Oct 10, 2008, 3:11:31 PM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r2544 r2700 138 138 include(PHPWG_ROOT_PATH . 'include/constants.php'); 139 139 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); 140 include(PHPWG_ROOT_PATH . 'include/template.class.php');141 140 142 141 // Database connection -
trunk/include/functions.inc.php
r2620 r2700 31 31 include_once( PHPWG_ROOT_PATH .'include/functions_url.inc.php' ); 32 32 include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' ); 33 include_once( PHPWG_ROOT_PATH .'include/template.class.php'); 33 34 34 35 //----------------------------------------------------------- generic functions … … 70 71 { 71 72 $boolean = true; 72 if ( preg_match( '/^false$/i', $string) )73 if ( 'false' == strtolower($string) ) 73 74 { 74 75 $boolean = false; … … 87 88 if (is_bool($var)) 88 89 { 89 if ($var) 90 { 91 return 'true'; 92 } 93 else 94 { 95 return 'false'; 96 } 90 return $var ? 'true' : 'false'; 97 91 } 98 92 else
Note: See TracChangeset
for help on using the changeset viewer.