Index: tokenauth.module
===================================================================
--- tokenauth.module	(revision 61003)
+++ tokenauth.module	(working copy)
@@ -102,7 +102,7 @@ function tokenauth_init() {
   }
 
   // Trigger tokenauth context condition.
-  if (module_exists('context') && $plugin = context_get_plugin('condition', 'tokenauth_auth')) {
+  if (module_exists('context') && function_exists('context_get_plugin') && $plugin = context_get_plugin('condition', 'tokenauth_auth')) {
     $plugin->execute((int)$_SESSION['tokenauth_auth']);
   }
 }
