fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11341] property: fix for new install


From: Sigurd Nes
Subject: [Fmsystem-commits] [11341] property: fix for new install
Date: Fri, 27 Sep 2013 16:43:47 +0000

Revision: 11341
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11341
Author:   sigurdne
Date:     2013-09-27 16:43:47 +0000 (Fri, 27 Sep 2013)
Log Message:
-----------
property: fix for new install

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

Modified: trunk/property/inc/class.soproject.inc.php
===================================================================
--- trunk/property/inc/class.soproject.inc.php  2013-09-27 14:20:51 UTC (rev 
11340)
+++ trunk/property/inc/class.soproject.inc.php  2013-09-27 16:43:47 UTC (rev 
11341)
@@ -2979,7 +2979,7 @@
                {
                        $sql = 'SELECT min(start_date) AS start_date FROM 
fm_project WHERE start_date <> 0';
                        $this->db->query($sql,__LINE__,__FILE__);
-                       if($this->db->next_record())
+                       if($this->db->next_record() && 
$this->db->f('start_date'))
                        {
                                $start_year = 
date('Y',$this->db->f('start_date'));
                        }
@@ -2987,6 +2987,7 @@
                        {
                                $start_year = date('Y');
                        }
+
                        $end_year = date('Y') + 1;
                        $year_list = array();
                        for ($i=$start_year;$i< $end_year ;$i++)




reply via email to

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