Retro comptabilité des hooks

This commit is contained in:
Alan Garcia 2013-04-26 13:00:03 +00:00
parent 38a68377a4
commit 2a92283fe5
1 changed files with 5 additions and 1 deletions

View File

@ -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