diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-12-04 13:27:38 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-12-04 13:27:38 +0100 |
commit | 36bc6b871f7dbd27e5b764d7a218bfab6dba96c8 (patch) | |
tree | da6cb2f5766c3081eda9d5c89c0526360a4ac62c | |
parent | d73875b2b4691d9d9dbd630cce43311f61dd7a28 (diff) | |
download | nextcloud-server-36bc6b871f7dbd27e5b764d7a218bfab6dba96c8.tar.gz nextcloud-server-36bc6b871f7dbd27e5b764d7a218bfab6dba96c8.zip |
Revert "Adjust files_encryption requirements to the new core requirement (PHP 5.3.8)."
This reverts commit efbf18652c6eef42e2ca2fda3572d74d2be022dd.
-rwxr-xr-x | apps/files_encryption/lib/helper.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/helper.php b/apps/files_encryption/lib/helper.php index 9aa631d114e..17bcac5c585 100755 --- a/apps/files_encryption/lib/helper.php +++ b/apps/files_encryption/lib/helper.php @@ -370,7 +370,14 @@ class Helper { * @return bool true if requirements are met */ public static function checkRequirements() { - return extension_loaded('openssl'); + $result = true; + + //openssl extension needs to be loaded + $result &= extension_loaded("openssl"); + // we need php >= 5.3.3 + $result &= version_compare(phpversion(), '5.3.3', '>='); + + return (bool) $result; } /** |