Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/exportbalance.php 1 location

@@ 94-105 (lines=12) @@
91
	/**
92
	 * template method to list available years
93
	 */
94
	public function getnextyear()
95
	{
96
		global $babDB;
97
98
		if ($arr = $babDB->db_fetch_assoc($this->resYears))
99
		{
100
			$this->year = bab_toHtml($arr['year']);
101
			return true;
102
		}
103
104
		return false;
105
	}
106
107
108
	public function getnextfield()

programs/utilit/right_export.class.php 1 location

@@ 300-311 (lines=12) @@
297
    /**
298
     * template method to list available years
299
     */
300
    public function getnextyear()
301
    {
302
        global $babDB;
303
    
304
        if ($arr = $babDB->db_fetch_assoc($this->resYears))
305
        {
306
            $this->year = bab_toHtml($arr['year']);
307
            return true;
308
        }
309
    
310
        return false;
311
    }
312
    
313
    
314
    public function getnextfield()