diff options
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r-- | src/lua/lua_classifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c index 511767680..901d6cff5 100644 --- a/src/lua/lua_classifier.c +++ b/src/lua/lua_classifier.c @@ -144,7 +144,7 @@ call_classifier_pre_callbacks (struct classifier_config *ccf, struct worker_task lua_pushstring (L, ccf->classifier->name); lua_gettable (L, -2); /* Function is now on top */ - if (lua_isfunction (L, 1)) { + if (lua_isfunction (L, -1)) { res = call_classifier_pre_callback (ccf, task, L, is_learn, is_spam); } } |