]> git.mxchange.org Git - friendica.git/commitdiff
Check for GMP module
authorMichael <heluecht@pirati.ca>
Sun, 17 Jul 2022 06:34:37 +0000 (06:34 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 17 Jul 2022 06:34:37 +0000 (06:34 +0000)
src/Contact/Avatar.php
src/Core/Installer.php

index f43ed7b8c7931b2351113174f267f4a99be6fac3..1dd2f9cee66c5c8203553771e99a4917eb310208 100644 (file)
@@ -263,7 +263,7 @@ class Avatar
        {
                $localFile = self::getCacheFile($avatar);
                if (!empty($localFile)) {
-                       unlink($localFile);
+                       @unlink($localFile);
                        Logger::debug('Unlink avatar', ['avatar' => $avatar]);
                }
        }
index ff759c9febe10d25dfd316c7410c89d9acfe99d2..9a9bdfb5f79f0cc5f72e7ecf547ba012bec45729 100644 (file)
@@ -486,6 +486,13 @@ class Installer
                );
                $returnVal = $returnVal ? $status : false;
 
+               $status = $this->checkFunction('gmp_strval',
+                       DI::l10n()->t('GNU Multiple Precision PHP module'),
+                       DI::l10n()->t('Error: GNU Multiple Precision PHP module required but not installed.'),
+                       true
+               );
+               $returnVal = $returnVal ? $status : false;
+
                return $returnVal;
        }