Code Duplication    Length = 10-10 lines in 2 locations

programs/exportvac.php 1 location

@@ 133-142 (lines=10) @@
130
    }
131
132
133
    public function getnextfield()
134
    {
135
        if (list($name,$arr) = each($this->dirfields))
136
        {
137
            $this->fieldname = bab_toHtml($name);
138
            $this->fieldlabel = bab_toHtml($arr['name']);
139
            return true;
140
        }
141
        return false;
142
    }
143
}
144
145

programs/utilit/exportbalance.php 1 location

@@ 107-116 (lines=10) @@
104
	}
105
106
107
	public function getnextfield()
108
	{
109
		if (list($name,$arr) = each($this->dirfields))
110
		{
111
			$this->fieldname = bab_toHtml($name);
112
			$this->fieldlabel = bab_toHtml($arr['name']);
113
			return true;
114
		}
115
		return false;
116
	}
117
118
	/**
119
	 * template method to list available organization