@ -9,8 +9,14 @@ class PluginHandler extends Handler_Protected {
$plugin = $pluginhost->get_plugin($_REQUEST["plugin"]);
if (method_exists($plugin, $method)) {
$plugin->$method();
if ($plugin) {
} else {
print json_encode(array("error" => "METHOD_NOT_FOUND"));
}
print json_encode(array("error" => "PLUGIN_NOT_FOUND"));