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 @@