Code Duplication    Length = 17-17 lines in 2 locations

programs/vacadmb.php 1 location

@@ 342-358 (lines=17) @@
339
340
			}
341
342
		function getnextstatus()
343
			{
344
			static $i = 0;
345
			if( $i < count($this->statarr))
346
				{
347
				$this->statusid = $i;
348
				$this->statusname = bab_toHtml($this->statarr[$i]);
349
				if( $this->idstatus != "" && $i == $this->idstatus )
350
					$this->selected = "selected";
351
				else
352
					$this->selected = "";
353
				$i++;
354
				return true;
355
				}
356
			else
357
				return false;
358
			}
359
		}
360
361
	$temp = new temp();

programs/vacadmwd.php 1 location

@@ 131-147 (lines=17) @@
128
	}
129
	
130
	
131
	public function getnextstatus()
132
	{
133
		static $i = 0;
134
		if( $i < count($this->statarr))
135
		{
136
			$this->statusid = $i;
137
			$this->statusname = bab_toHtml($this->statarr[$i]);
138
			if( $this->idstatus != "" && $i == $this->idstatus )
139
				$this->selected = "selected";
140
			else
141
				$this->selected = "";
142
			$i++;
143
			return true;
144
		}
145
		else
146
			return false;
147
	}
148
}
149
150