Recherche par auteurs


Error with the following message:

Undefined index: champ

in /www/html/template/laas-cnrs-2009/support/protected/modules/publications.authorsv2/module.php at line 15

Stack trace:

#00 — /template/laas-cnrs-2009/support/framework/wdcore/wdmodule.php(580): call_user_func_array(Array, Array)
#01 — /1-31708-Recherche-par-auteurs.php(73): WdModule->getBlock(search)

Code sample:


protected function block_search()
{

$champ = $_GET['champ'];

$entries = $this->model()->query
(
'SELECT LPAD(nom, 1) "letter" FROM '.BDDPULMAN.'.auteurs GROUP BY LPAD(nom, 1) ORDER BY "letter"'
)
->fetchAll(PDO::FETCH_COLUMN);