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:
cweiske 2009-09-17 11:59:29 +00:00
parent 231ca35508
commit 362ebe90ea

View file

@ -13,6 +13,7 @@ $selected = ' selected="selected"';
<table>
<tr>
<?php
$currentUser = $currentUsername = null;
if ($userservice->isLoggedOn()) {
$currentUser = $userservice->getCurrentObjectUser();
$currentUsername = $currentUser->getUsername();