Fix: php strict mode saga

This commit is contained in:
Regis Houssin 2014-08-28 15:52:20 +02:00
parent 615122bf37
commit 139cf10c7c

View File

@ -1,10 +1,10 @@
<?php <?php
/* Copyright (c) 2008-2013 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2008-2013 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2010-2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (c) 2010 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* Copyright (c) 2013 Charles-Fr BENKE <charles.fr@benke.fr> * Copyright (C) 2013 Charles-Fr BENKE <charles.fr@benke.fr>
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr> * Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (c) 2014 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* *
* 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
@ -514,11 +514,11 @@ class FormFile
$out.= $genbutton; $out.= $genbutton;
$out.= '</th>'; $out.= '</th>';
if($hookmanager->hooks['formfile']) if (!empty($hookmanager->hooks['formfile']))
{ {
foreach($hookmanager->hooks['formfile'] as $module) foreach($hookmanager->hooks['formfile'] as $module)
{ {
if(method_exists($module, 'formBuilddocLineOptions')) $out .= '<th></th>'; if (method_exists($module, 'formBuilddocLineOptions')) $out .= '<th></th>';
} }
} }
$out.= '</tr>'; $out.= '</tr>';