I had the same error, therefore I downloaded your fixed version.
It does work fine now.
But I first had to rename the plugins/advanced-access-manager directory on the server otherwise I could not upload the new plugin via the plugin upload of the WordPress Webinterface due to the already existing directory.
Thanks for the quick fix.