Browse Source

patch for php74

master
ppound 3 years ago
parent
commit
ab09b2ad4c
  1. 2
      includes/faces.inc

2
includes/faces.inc

@ -224,6 +224,8 @@ if (!class_exists('FacesExtendable', FALSE)) {
* describe a single file.
*/
public function extend($interface, array $callbacks = array(), array $includes = array()) {
//UPEI added line below
$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))) {

Loading…
Cancel
Save