Changeset 295 for trunk/includes/global_function.php
- Timestamp:
- Dec 28, 2009, 10:21:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r291 r295 111 111 } 112 112 } 113 if($Found == false) $_SESSION['OrderCol'] = $DefaultColumn; 113 if($Found == false) 114 { 115 $_SESSION['OrderCol'] = $DefaultColumn; 116 $_SESSION['OrderDir'] = $DefaultOrder; 117 } 114 118 // Check OrderDir 115 119 if(($_SESSION['OrderDir'] != 0) and ($_SESSION['OrderDir'] != 1)) $_SESSION['OrderDir'] = 0; … … 301 305 { 302 306 $DateTimeParts = explode(' ', $SQLDateTime); 303 $DateParts = explode('-', $DateTimeParts[0]); 304 return(($DateParts[2] * 1).'.'.($DateParts[1] * 1).'.'.($DateParts[0] * 1)); 307 if($DateTimeParts[0] != '0000-00-00') 308 { 309 $DateParts = explode('-', $DateTimeParts[0]); 310 return(($DateParts[2] * 1).'.'.($DateParts[1] * 1).'.'.($DateParts[0] * 1)); 311 } else return(' '); 305 312 } 306 313
Note:
See TracChangeset
for help on using the changeset viewer.