Skip to content

Commit

Permalink
took out a print header that was generating a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Apr 12, 2006
1 parent 26f8fcd commit b744c0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blog/preferences.php
Expand Up @@ -22,15 +22,14 @@
error(get_string('noguestpost', 'blog'), $referrer);
}

if (!blog_isLoggedIn() ) {
if (!(isloggedin() && !isguest())) {
error(get_string('noguestpost', 'blog'), $referrer);
}
$userid = $USER->id;

/// If data submitted, then process and store.

if ($post = data_submitted()) {
print_header();

$pagesize = optional_param('pagesize', 10, PARAM_INT);
if ($pagesize < 1 ) {
Expand Down

0 comments on commit b744c0c

Please sign in to comment.