diff --git a/bureau/class/m_hooks.php b/bureau/class/m_hooks.php index 5d997629..83a8c795 100644 --- a/bureau/class/m_hooks.php +++ b/bureau/class/m_hooks.php @@ -51,7 +51,11 @@ class m_hooks { if (is_null($hclass)) { global $classes; } else { - $classes = array($hclass); + if (is_array($hclass)) { + $classes = $hclass; + } else { + $classes = array($hclass); + } } // On parcourt les classes, si la fonction qu'on cherche