1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00
framaforms_ynh/sources/patches/app-001-faces.patch
yalh76 4c2e0d934c Fix error
Error : Unsupported operand types dans FacesExtendable->extend() (ligne 233 dans /var/www/framaforms/sites/all/modules/rules/includes/faces.inc).
2020-03-30 13:18:35 +02:00

12 lines
688 B
Diff

diff --git a/sites/all/modules/rules/includes/faces.inc b/sites/all/modules/rules/includes/faces.inc
index a1fc93bd..812d96a1 100644
--- a/sites/all/modules/rules/includes/faces.inc
+++ b/sites/all/modules/rules/includes/faces.inc
@@ -224,6 +224,7 @@ if (!class_exists('FacesExtendable', FALSE)) {
* describe a single file.
*/
public function extend($interface, array $callbacks = array(), array $includes = array()) {
+ $interface = class_exists($interface) ? $interface : FALSE;
$face_methods = $interface ? get_class_methods($interface) : array_keys($callbacks);
if ($interface) {
if (array_diff($face_methods, array_keys($callbacks))) {