fixed PHP message
This commit is contained in:
parent
6c306bcb9e
commit
c5b6c8132c
|
@ -210,8 +210,8 @@ class QueryRender extends PageRender {
|
|||
echo '<br/>';
|
||||
echo '<br/>';
|
||||
|
||||
switch(get_request('format','REQUEST',false,$_SESSION[APPCONFIG]->getValue('search','display'))) {
|
||||
case 'list':
|
||||
$format = get_request('format','REQUEST',false,$_SESSION[APPCONFIG]->getValue('search','display'));
|
||||
if ($format === 'list') {
|
||||
foreach ($results as $dndetails) {
|
||||
$dndetails = array_change_key_case($dndetails);
|
||||
|
||||
|
@ -263,16 +263,13 @@ class QueryRender extends PageRender {
|
|||
echo '</table>';
|
||||
echo '<br/>';
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
else {
|
||||
# Display the results.
|
||||
case 'table':
|
||||
if (!$results) {
|
||||
echo _('Search returned no results');
|
||||
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
|
||||
printf('<form action="cmd.php" method="post" id="massform_%s">', $counter);
|
||||
echo '<div>';
|
||||
|
@ -370,11 +367,7 @@ class QueryRender extends PageRender {
|
|||
echo '</table>';
|
||||
echo '</form>';
|
||||
echo "\n\n";
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
printf('Have ID [%s], run this query for page [%s]',$this->template_id,$this->page);
|
||||
}
|
||||
}
|
||||
|
||||
echo '</td></tr>';
|
||||
|
|
Loading…
Reference in New Issue