phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4396 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4396 - phpcompta/trunk/include
Date: Fri, 18 Nov 2011 14:29:24 +0100 (CET)

Author: danydb
Date: 2011-11-18 14:29:23 +0100 (Fri, 18 Nov 2011)
New Revision: 4396

Modified:
   phpcompta/trunk/include/class_acc_ledger.php
Log:
strict standard

Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php        2011-11-18 13:01:28 UTC 
(rev 4395)
+++ phpcompta/trunk/include/class_acc_ledger.php        2011-11-18 13:29:23 UTC 
(rev 4396)
@@ -1854,8 +1854,9 @@
      * \return array with [0] = false if failed otherwise true, [1] error
      * code
      */
-    function save ($p_array)
+    function save ($p_array=null)
     {
+      if ($p_array == null) throw new Exception ('save cannot use a empty 
array');
         global $g_parameter;
         extract ($p_array);
         try
@@ -3187,8 +3188,10 @@
         * @param type $array  normally post
         * @see verify_ledger
         */
-       function update($array)
+       function update($array='')
        {
+               if ($array == null) throw new Exception ('save cannot use a 
empty array');
+
                extract ($array);
                $this->jrn_def_id=$p_jrn;
                $this->jrn_def_name=$p_jrn_name;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]