Changeset 597 for trunk/b2-include/b2functions.php
- Timestamp:
- 12/10/2003 09:05:11 AM (23 years ago)
- File:
-
- 1 edited
-
trunk/b2-include/b2functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2functions.php
r594 r597 377 377 if ((!isset($cache_lastpostdate)) OR (!$use_cache)) { 378 378 $now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600))); 379 if ($pagenow != 'wp-post.php') { 380 $showcatzero = 'post_category > 0 AND'; 381 } else { 382 $showcatzero = ''; 383 } 384 $lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE $showcatzero post_date <= '$now' ORDER BY post_date DESC LIMIT 1"); 379 380 $lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE post_date <= '$now' ORDER BY post_date DESC LIMIT 1"); 385 381 $cache_lastpostdate = $lastpostdate; 386 382 // echo $lastpostdate;
Note: See TracChangeset
for help on using the changeset viewer.