Skip to content

Commit

Permalink
Fix variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 13, 2017
1 parent 5d6afd8 commit 4ce72f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions whups/lib/Whups.php
Expand Up @@ -391,7 +391,7 @@ static public function getCurrentTicket()
try {
return Whups_Ticket::makeTicket($id);
} catch (Whups_Exception $e) {
if ($ticket->code === 0) {
if ($e->code === 0) {
// No permissions to this ticket.
$GLOBALS['notification']->push($e->getMessage(), 'horde.warning');
$default->redirect();
Expand All @@ -405,7 +405,8 @@ static public function getCurrentTicket()
/**
* Adds topbar search to page
*/
static public function addTopbarSearch() {
static public function addTopbarSearch()
{
$topbar = $GLOBALS['injector']->getInstance('Horde_View_Topbar');
$topbar->search = true;
$topbar->searchAction = Horde::url('ticket');
Expand Down

0 comments on commit 4ce72f0

Please sign in to comment.