From 2a92283fe59f18aeb50f4ba74a78b5908d206cc5 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 26 Apr 2013 13:00:03 +0000 Subject: [PATCH] =?UTF-8?q?Retro=20comptabilit=C3=A9=20des=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_hooks.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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