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

@@ 326-338 (lines=13) @@
323
    }
324
    
325
    
326
    public function getnextorganization()
327
    {
328
        global $babDB;
329
        
330
        if ($arr = $babDB->db_fetch_assoc($this->resOrganization))
331
        {
332
            $this->organization = bab_toHtml($arr['name']);
333
            $this->id_organization = bab_toHtml($arr['id']);
334
            return true;
335
        }
336
        
337
        return false;
338
    }
339
}
340
341