aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/directory.php b/mod/directory.php
index d71a5584a..8dbed4115 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -199,13 +199,18 @@ function directory_content(&$a) {
$a->data['directory_keywords'] = $j['keywords'];
}
- logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DEBUG);
+ logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
if($_REQUEST['aj']) {
- $o = replace_macros(get_markup_template('directajax.tpl'),array(
- '$entries' => $entries
- ));
+ if($entries) {
+ $o = replace_macros(get_markup_template('directajax.tpl'),array(
+ '$entries' => $entries
+ ));
+ }
+ else {
+ $o = '<div id="content-complete"></div>';
+ }
echo $o;
killme();
}