fix bug #2834118: Undefined variable in search.inc.php when not logged on
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@344 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
231ca35508
commit
362ebe90ea
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ $selected = ' selected="selected"';
|
|||
<table>
|
||||
<tr>
|
||||
<?php
|
||||
$currentUser = $currentUsername = null;
|
||||
if ($userservice->isLoggedOn()) {
|
||||
$currentUser = $userservice->getCurrentObjectUser();
|
||||
$currentUsername = $currentUser->getUsername();
|
||||
|
|
Loading…
Reference in a new issue