Merge pull request #9739 from frederic34/patch-11

fix size of $head when replacing by hook
This commit is contained in:
Laurent Destailleur 2018-10-14 16:27:14 +02:00 committed by GitHub
commit fabc11191d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
* Copyright (C) 2014 Cédric GROSS <c.gross@kreiz-it.fr> * Copyright (C) 2014 Cédric GROSS <c.gross@kreiz-it.fr>
* Copyright (C) 2014-2015 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2014-2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr> * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -5980,6 +5981,7 @@ function complete_head_from_modules($conf,$langs,$object,&$head,&$h,$type,$mode=
if ($reshook > 0) if ($reshook > 0)
{ {
$head = $hookmanager->resArray; $head = $hookmanager->resArray;
$h = count($head);
} }
} }
} }