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

SF.net SVN: ledger-smb:[2330] trunk/LedgerSMB/DBObject.pm



Revision: 2330
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2330&view=rev
Author:   einhverfr
Date:     2008-09-18 19:58:27 +0000 (Thu, 18 Sep 2008)

Log Message:
-----------
CHangeing DBObject's method argument detection to avoid problem cases.

Modified Paths:
--------------
    trunk/LedgerSMB/DBObject.pm

Modified: trunk/LedgerSMB/DBObject.pm
===================================================================
--- trunk/LedgerSMB/DBObject.pm	2008-09-18 18:39:03 UTC (rev 2329)
+++ trunk/LedgerSMB/DBObject.pm	2008-09-18 19:58:27 UTC (rev 2330)
@@ -131,7 +131,7 @@
     }
     $ref->{pronargs} = 0 unless defined $ref->{pronargs};
     # If the user provided args..
-    if (length(@in_args) == 0) {
+    if (!defined  @in_args) {
         @proc_args = $self->_parse_array($args);
         if (@proc_args) {
             for my $arg (@proc_args) {


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