mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
Fix some PHP warnings
This commit is contained in:
parent
3151721838
commit
c9f63fa5e9
2 changed files with 4 additions and 3 deletions
|
@ -566,6 +566,7 @@ class LSsearch extends LSlog_staticLoggerClass {
|
||||||
// Following parameters are allowed from request but need additional checks
|
// Following parameters are allowed from request but need additional checks
|
||||||
'filter', 'basedn', 'subDn', 'scope', 'attributes', 'displayFormat',
|
'filter', 'basedn', 'subDn', 'scope', 'attributes', 'displayFormat',
|
||||||
);
|
);
|
||||||
|
$data = array();
|
||||||
|
|
||||||
foreach($_REQUEST as $key => $value) {
|
foreach($_REQUEST as $key => $value) {
|
||||||
if (!in_array($key, $allowedParams))
|
if (!in_array($key, $allowedParams))
|
||||||
|
@ -640,7 +641,7 @@ class LSsearch extends LSlog_staticLoggerClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this -> setParams($data);
|
return (empty($data)?true:$this -> setParams($data));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{if $LSsearch->extraDisplayedColumns}
|
{if $LSsearch->extraDisplayedColumns}
|
||||||
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
|
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
|
||||||
<th class='LSobject-list'{if $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}>
|
<th class='LSobject-list'{if isset($conf.cssStyle) && $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}>
|
||||||
{if $LSsearch->sort}
|
{if $LSsearch->sort}
|
||||||
<a href='object/{$LSsearch->LSobject|escape:"url"}?sortBy={$cid|escape:"url"}&nocache={$smarty.now}'>
|
<a href='object/{$LSsearch->LSobject|escape:"url"}?sortBy={$cid|escape:"url"}&nocache={$smarty.now}'>
|
||||||
{if $LSsearch->sortBy == $cid}
|
{if $LSsearch->sortBy == $cid}
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
{if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:"htmlall"}</td>{/if}
|
{if $LSsearch->displaySubDn}<td class='LSobject-list'>{$object->subDn|escape:"htmlall"}</td>{/if}
|
||||||
{if $LSsearch->extraDisplayedColumns}
|
{if $LSsearch->extraDisplayedColumns}
|
||||||
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
|
{foreach from=$LSsearch->visibleExtraDisplayedColumns item=conf key=cid}
|
||||||
<td class='LSobject-list'{if $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}>{if !isset($conf.escape) || $conf.escape}{$object->$cid|escape:"htmlall"}{else}{$object->$cid}{/if}</td>
|
<td class='LSobject-list'{if isset($conf.cssStyle) && $conf.cssStyle} style='{$conf.cssStyle|escape:"htmlall"}'{/if}>{if !isset($conf.escape) || $conf.escape}{$object->$cid|escape:"htmlall"}{else}{$object->$cid}{/if}</td>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
<td class='LSobject-list LSobject-list-actions'>
|
<td class='LSobject-list LSobject-list-actions'>
|
||||||
|
|
Loading…
Reference in a new issue