From e618e8b944bc734defa22619a8826a55067d5911 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 16 Jul 2009 05:20:34 +0000 Subject: - fix php warning from comment_list.tpl - author name is saved always in #comments (even for registered users) so that - sql queries are simpler on the comments page (one less table in a big join) - when a user is deleted, we can keep the username in the #comments (there might be still a bug that author_id is not updated when a user is deleted) git-svn-id: http://piwigo.org/svn/trunk@3600 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/comment_list.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'template') diff --git a/template/yoga/comment_list.tpl b/template/yoga/comment_list.tpl index 5586c0f2a..fbb8ad7b0 100644 --- a/template/yoga/comment_list.tpl +++ b/template/yoga/comment_list.tpl @@ -10,7 +10,7 @@ {/if} -
+
{if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
    {if isset($comment.U_DELETE)} @@ -20,7 +20,7 @@ {/if} - {if isset($comment.U_EDIT) and ($comment.IN_EDIT!=1)} + {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
  • [edit] @@ -37,7 +37,7 @@
{/if} {$comment.AUTHOR} - {$comment.DATE} - {if ($comment.IN_EDIT==1)} + {if isset($comment.IN_EDIT)}
-- cgit v1.2.3