[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. a4d5212adb4adab70ff77f9cb9cfda0a308732a9

Stefan Hornburg racke at rt.icdevgroup.org
Fri Apr 24 09:36:45 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".

The branch, master has been updated
       via  a4d5212adb4adab70ff77f9cb9cfda0a308732a9 (commit)
      from  4f1ebfcc5fc127c5bcda0a9f707846ec6153e294 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a4d5212adb4adab70ff77f9cb9cfda0a308732a9
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Fri Apr 24 11:36:31 2009 +0200

    ensure valid username

-----------------------------------------------------------------------

Summary of changes and diff:
 plugins/reviews/code/reviews.tag |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/plugins/reviews/code/reviews.tag b/plugins/reviews/code/reviews.tag
index 3f05833..545349e 100644
--- a/plugins/reviews/code/reviews.tag
+++ b/plugins/reviews/code/reviews.tag
@@ -12,7 +12,13 @@ sub {
 	if ($function eq 'create') {
 		my $perm;
 
-		$review{uid} = $Scratch->{uid} || 0;
+		if ($Session->{username} =~ /^(\d+)$/) {
+			$review{uid} = $Session->{username};
+		}
+		else {
+			$review{uid} = 0;
+		}
+
 		$review{created} = $Tag->time({body => '%Y-%m-%d %H:%M:%S'});
 
 		for (qw/sku rating review/) {


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list