Just use print instead of echo, just because echo is not use anuwhere
else.
This commit is contained in:
parent
7ee23a9612
commit
57dbf87d0a
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (c) 2008-2011 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-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (c) 2010 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (c) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
@ -142,10 +142,11 @@ class FormFile
|
|||||||
$out .= "\n<!-- End form attach new file -->\n\n";
|
$out .= "\n<!-- End form attach new file -->\n\n";
|
||||||
$parameters = array('socid'=>(isset($GLOBALS['socid'])?$GLOBALS['socid']:''),'id'=>(isset($GLOBALS['id'])?$GLOBALS['id']:''), 'url'=>$url);
|
$parameters = array('socid'=>(isset($GLOBALS['socid'])?$GLOBALS['socid']:''),'id'=>(isset($GLOBALS['id'])?$GLOBALS['id']:''), 'url'=>$url);
|
||||||
$res = $hookmanager->executeHooks('formattachOptions',$parameters,$object);
|
$res = $hookmanager->executeHooks('formattachOptions',$parameters,$object);
|
||||||
if(!$res) {
|
if (empty($res))
|
||||||
echo $out;
|
{
|
||||||
|
print $out;
|
||||||
}
|
}
|
||||||
echo $hookmanager->resPrint;
|
print $hookmanager->resprint;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user