BUG FIX aray implicitly converted to boolean
This commit is contained in:
parent
17133cabb0
commit
80af6c8fdc
@ -404,7 +404,7 @@ print load_fiche_titre($langs->trans("CommentsOfVoters"), '', '');
|
||||
// Comment list
|
||||
$comments = $object->getComments();
|
||||
|
||||
if ($comments) {
|
||||
if (!empty($comments)) {
|
||||
foreach ($comments as $comment) {
|
||||
if ($user->rights->opensurvey->write) {
|
||||
print '<a class="reposition" href="'.DOL_URL_ROOT.'/opensurvey/card.php?action=deletecomment&token='.newToken().'&idcomment='.((int) $comment->id_comment).'&id='.urlencode($numsondage).'"> '.img_picto('', 'delete.png', '', false, 0, 0, '', '', 0).'</a> ';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user