]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_notify.php
Merge pull request #2094 from annando/1511-api
[friendica.git] / mod / dfrn_notify.php
index fe7adca4134d69e882da3feef4d4c9de28ae176a..fcc5726548fea9ae944c204fbbd7362ff24c8034 100644 (file)
@@ -137,6 +137,8 @@ function dfrn_notify_post(&$a) {
 
        $rino = get_config('system','rino_encrypt');
        $rino = intval($rino);
+       // use RINO1 if mcrypt isn't installed and RINO2 was selected
+       if ($rino==2 and !function_exists('mcrypt_create_iv')) $rino=1;
 
        logger("Local rino version: ". $rino, LOGGER_DEBUG);
 
@@ -307,7 +309,9 @@ function dfrn_notify_content(&$a) {
 
                $rino = get_config('system','rino_encrypt');
                $rino = intval($rino);
-
+               // use RINO1 if mcrypt isn't installed and RINO2 was selected
+               if ($rino==2 and !function_exists('mcrypt_create_iv')) $rino=1;
+               
                logger("Local rino version: ". $rino, LOGGER_DEBUG);
 
                // if requested rino is lower than enabled local rino, lower local rino version