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