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

13 lines
688 B
Diff
Raw Normal View History

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))) {