check for mcrypt_decrypt

This commit is contained in:
Thomas Lackner 2012-12-31 15:06:58 -06:00
parent eb94939652
commit 7d61392bfd

View file

@ -40,6 +40,9 @@
if (!function_exists('json_decode')) { if (!function_exists('json_decode')) {
throw new Exception('Snaphax needs the JSON PHP extension.'); throw new Exception('Snaphax needs the JSON PHP extension.');
} }
if (!function_exists('mcrypt_decrypt')) {
throw new Exception('Snaphax needs the mcrypt PHP extension.');
}
class Snaphax { class Snaphax {