Changeset 106 for devel/_activity
- Timestamp:
- 01/12/06 08:02:45 (3 years ago)
- Files:
-
- devel/_activity/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_activity/index.php
r98 r106 40 40 41 41 $activities = db_query("select users.username, weblog_comments.*, weblog_posts.ident as weblogpost, weblog_posts.title as weblogtitle, weblog_posts.weblog as weblog from weblog_comments left join weblog_posts on weblog_posts.ident = weblog_comments.post_id left join users on users.ident = weblog_posts.weblog where weblog_comments.posted >= $starttime and weblog_posts.owner = $page_owner order by weblog_comments.posted desc"); 42 if ( sizeof($activities) > 0) {42 if (is_array($activities) && sizeof($activities) > 0) { 43 43 foreach($activities as $activity) { 44 44 $commentbody = stripslashes($activity->body); … … 59 59 60 60 $activities = db_query("select users.username, users.name as weblogname, weblog_comments.*, weblog_posts.weblog, weblog_posts.ident as weblogpost, weblog_posts.title as weblogtitle, weblog_posts.weblog as weblog from weblog_watchlist left join weblog_comments on weblog_comments.post_id = weblog_watchlist.weblog_post left join weblog_posts on weblog_posts.ident = weblog_comments.post_id left join users on users.ident = weblog_posts.weblog where weblog_watchlist.owner = $page_owner and weblog_comments.posted >= $starttime order by weblog_comments.posted desc"); 61 if ( sizeof($activities) > 0) {61 if (is_array($activities) && sizeof($activities) > 0) { 62 62 foreach($activities as $activity) { 63 63 $commentbody = stripslashes($activity->body);
