File deleted |
|
Property changes: |
Deleted: svn:executable |
## -1 +0,0 ## |
-* |
\ No newline at end of property |
Index: admin/all-blog-posts.php |
=================================================================== |
--- admin/all-blog-posts.php (revision 461) |
+++ admin/all-blog-posts.php (revision 470) |
@@ -27,24 +27,28 @@ |
$ids = $page->findIDs('BlogPosts', 'ORDER BY DatePosted DESC'); |
for ($i = 0; $i < count($ids); $i++) |
{ |
- $post = $page->getBlogPost($ids[$i]); |
- write(' |
---|
');
- write(' | ' . $post->ID . ' | ');
- if ($post->parent == -1) |
+ $id_str = $ids[$i]; |
+ if (!empty($id_str)) |
{ |
- write(' | No Parent | ');
+ $post = $page->getBlogPost($id_str); |
+ write(' |
---|
');
+ write(' | ' . $post->ID . ' | ');
+ if ($post->parent == -1) |
+ { |
+ write(' | No Parent | ');
+ } |
+ else |
+ { |
+ write(' | ' . $post->parent->title . ' | ');
+ } |
+ write(' | ' . $post->author->name . ' | ');
+ write(' | ' . $post->title . ' | ');
+ write(' | ' . str_replace("\n", ' ', $post->content) . ' | ');
+ write(' | ' . date('j/m/Y H:i', $post->datePosted) . ' | ');
+ write(' | ' . $post->category . ' | ');
+ write(' | ' . $post->spam . ' | ');
+ write(' |
');
} |
- else |
- { |
- write(' | ' . $post->parent->title . ' | ');
- } |
- write(' | ' . $post->author->name . ' | ');
- write(' | ' . $post->title . ' | ');
- write(' | ' . str_replace("\n", ' ', $post->content) . ' | ');
- write(' | ' . date('j/m/Y H:i', $post->datePosted) . ' | ');
- write(' | ' . $post->category . ' | ');
- write(' | ' . $post->spam . ' | ');
- write(' |
');
} |
write(' |
---|