[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3563] trunk/scripts/admin.pl



Revision: 3563
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3563&view=rev
Author:   ehuelsmann
Date:     2011-07-22 16:53:44 +0000 (Fri, 22 Jul 2011)

Log Message:
-----------
Check 'import' explicitly for '1', because the other value ('0') is also a 'true' value.

Modified Paths:
--------------
    trunk/scripts/admin.pl

Modified: trunk/scripts/admin.pl
===================================================================
--- trunk/scripts/admin.pl	2011-07-22 16:48:20 UTC (rev 3562)
+++ trunk/scripts/admin.pl	2011-07-22 16:53:44 UTC (rev 3563)
@@ -65,7 +65,7 @@
 
 sub save_user {
     my ($request, $admin) = @_;
-    if ($request->{import}){
+    if ($request->{import} == "1"){
          delete $request->{password};
     }
     my $admin = LedgerSMB::DBObject::Admin->new(base=>$request, copy=>'all');


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.