summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 5e98526ff..12e4969f0 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -125,8 +125,7 @@ function tpl_content_core(){
break;
default:
$evt = new event('ACTION_TEMPLATE',$ACT);
- $evt->advise();
- if ($evt->_default)
+ if ($evt->advise())
msg("Failed to handle command: ".hsc($ACT),-1);
}
}