diff --git a/mozilla/webtools/partytool/controllers/parties_controller.php b/mozilla/webtools/partytool/controllers/parties_controller.php index dd74d31bf3d..0c11ccca2b0 100644 --- a/mozilla/webtools/partytool/controllers/parties_controller.php +++ b/mozilla/webtools/partytool/controllers/parties_controller.php @@ -243,8 +243,8 @@ class PartiesController extends AppController { $this->pageTitle = "Invite a Guest"; if (is_numeric($id)) { $party = $this->Party->findById($id); - if (empty($party['Party']['id']) && - $party['Party']['owner'] !== $_SESSION['User']['id']) + if (empty($party['Party']['id']) || + $party['Party']['owner'] != $_SESSION['User']['id']) $this->redirect('/parties/view/all'); else { diff --git a/mozilla/webtools/partytool/views/layouts/default.thtml b/mozilla/webtools/partytool/views/layouts/default.thtml index e78d0658f7d..5386ce2ee61 100755 --- a/mozilla/webtools/partytool/views/layouts/default.thtml +++ b/mozilla/webtools/partytool/views/layouts/default.thtml @@ -4,7 +4,7 @@ <?php echo APP_NAME." - ".$title_for_layout?> - + @@ -37,4 +37,4 @@ - \ No newline at end of file + diff --git a/mozilla/webtools/partytool/views/parties/invited.thtml b/mozilla/webtools/partytool/views/parties/invited.thtml index edbf108d8e0..4ee03b344d3 100755 --- a/mozilla/webtools/partytool/views/parties/invited.thtml +++ b/mozilla/webtools/partytool/views/parties/invited.thtml @@ -5,7 +5,7 @@

New User

-

Simply register for an account and you'll be added as a guest as soon as you finish. +

Simply register for an account, and you'll be added as a guest as soon as you finish. Create account »

@@ -33,4 +33,4 @@ if (isset($party) && isset($confirm_only)): ?>

You've been invited to attend . To join this party, click here, or cancel this invitation by clicking here.

- \ No newline at end of file +