Code Duplication    Length = 13-13 lines in 2 locations

programs/utilit/exportbalance.php 1 location

@@ 122-134 (lines=13) @@
119
	/**
120
	 * template method to list available organization
121
	 */
122
	public function getnextorganization()
123
	{
124
		global $babDB;
125
126
		if ($arr = $babDB->db_fetch_assoc($this->resOrganization))
127
		{
128
			$this->organization = bab_toHtml($arr['name']);
129
			$this->id_organization = bab_toHtml($arr['id']);
130
			return true;
131
		}
132
133
		return false;
134
	}
135
136
137

programs/utilit/right_export.class.php 1 location

@@ 314-326 (lines=13) @@
311
    }
312
    
313
    
314
    public function getnextorganization()
315
    {
316
        global $babDB;
317
        
318
        if ($arr = $babDB->db_fetch_assoc($this->resOrganization))
319
        {
320
            $this->organization = bab_toHtml($arr['name']);
321
            $this->id_organization = bab_toHtml($arr['id']);
322
            return true;
323
        }
324
        
325
        return false;
326
    }
327
}
328
329