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

SF.net SVN: ledger-smb:[6171] trunk/LedgerSMB/Setting/Sequence.pm



Revision: 6171
          http://sourceforge.net/p/ledger-smb/code/6171
Author:   einhverfr
Date:     2013-10-23 13:45:49 +0000 (Wed, 23 Oct 2013)
Log Message:
-----------
correction to should_increment logic

Modified Paths:
--------------
    trunk/LedgerSMB/Setting/Sequence.pm

Modified: trunk/LedgerSMB/Setting/Sequence.pm
===================================================================
--- trunk/LedgerSMB/Setting/Sequence.pm	2013-10-23 13:43:48 UTC (rev 6170)
+++ trunk/LedgerSMB/Setting/Sequence.pm	2013-10-23 13:45:49 UTC (rev 6171)
@@ -197,6 +197,7 @@
     }
     my $sequence = $self;
     $sequence = LedgerSMB::Setting::Sequence->get($label) if $label;
+    return 0 unless ref $sequence;
     return 1 unless $sequence->accept_input;
     return 0;
 }

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits