fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10672] property: return on empty


From: Sigurd Nes
Subject: [Fmsystem-commits] [10672] property: return on empty
Date: Tue, 15 Jan 2013 08:35:46 +0000

Revision: 10672
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10672
Author:   sigurdne
Date:     2013-01-15 08:35:45 +0000 (Tue, 15 Jan 2013)
Log Message:
-----------
property: return on empty

Modified Paths:
--------------
    trunk/property/inc/class.soworkorder.inc.php

Modified: trunk/property/inc/class.soworkorder.inc.php
===================================================================
--- trunk/property/inc/class.soworkorder.inc.php        2013-01-14 13:13:44 UTC 
(rev 10671)
+++ trunk/property/inc/class.soworkorder.inc.php        2013-01-15 08:35:45 UTC 
(rev 10672)
@@ -1670,6 +1670,10 @@
 
                function get_budget($order_id)
                {
+                       if(!$order_id)
+                       {
+                               return array();
+                       }
 
                        $closed_period = array();
                        $active_period = array();




reply via email to

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