Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php |
— | — | @@ -45,6 +45,9 @@ |
46 | 46 | */ |
47 | 47 | public function getResultHTML($results, $params) { |
48 | 48 | $this->readParameters($params); |
| 49 | + if ($results->getCount() == 0) { |
| 50 | + return htmlspecialchars($this->mDefault); |
| 51 | + } |
49 | 52 | return $this->getHTML($results); |
50 | 53 | } |
51 | 54 | |
— | — | @@ -128,6 +131,8 @@ |
129 | 132 | protected function getHTML($res) { |
130 | 133 | global $smwgIQRunningNumber; |
131 | 134 | |
| 135 | + |
| 136 | + |
132 | 137 | // print header |
133 | 138 | if ('broadtable' == $this->mFormat) |
134 | 139 | $widthpara = ' width="100%"'; |