Changeset 571 for trunk/Common/Database.php
- Timestamp:
- Sep 27, 2013, 12:44:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Database.php
r548 r571 152 152 return(addslashes($Text)); 153 153 } 154 155 154 } 156 155 … … 175 174 function MysqlDateTimeToTime($DateTime) 176 175 { 177 if($DateTime == '') return( 0);176 if($DateTime == '') return(NULL); 178 177 $Parts = explode(' ', $DateTime); 179 178 $DateParts = explode('-', $Parts[0]); … … 185 184 function MysqlDateToTime($Date) 186 185 { 187 if($Date == '') return( 0);186 if($Date == '') return(NULL); 188 187 return(MysqlDateTimeToTime($Date.' 0:0:0')); 189 188 } … … 191 190 function MysqlTimeToTime($Time) 192 191 { 193 if($Time == '') return( 0);192 if($Time == '') return(NULL); 194 193 return(MysqlDateTimeToTime('0000-00-00 '.$Time)); 195 194 }
Note:
See TracChangeset
for help on using the changeset viewer.