protected function encodeArgs(array $args, $encode = false)
{
$qs = '?';
- $sep = $encode ? '&' : '&';
+ $sep = '&';
foreach ($args as $k=>$v) {
if (!$encode) {
$k = urlencode($k);
$limitcount = "LIMIT $limitcount";
}
$joins = $this->joins . ' ' . $joins;
- $where = $where;
if (trim($this->where)) {
if (trim($where)) {
$where .= ' AND ';
{
$view = strtolower($view);
if (!$view || !class_exists($view . 'View') || !isset($this->mods[$view])) {
- $view = $this->default ? $this->default : $this->mods[0];
+ reset($this->mods);
+ $view = $this->default ? $this->default : key($this->mods);
}
$this->mod = $view;
$class = $view . 'View';
return false;
}
$args = $view->args();
+ if (!isset($args['rechercher'])) {
+ $args['rechercher'] = 'Chercher';
+ }
$page->changeTpl('core/plset.tpl');
$page->assign('plset_base', $baseurl);
$page->assign('plset_mods', $this->mods);
unset($list['page']);
unset($list['order']);
return $list;
- }
+ }
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: