Code Duplication    Length = 4-4 lines in 2 locations

require/class.Connection.php 2 locations

@@ 206-209 (lines=4) @@
203
		}
204
		$columns = array();
205
		$colcnt = $results->columnCount();
206
		for ($i = 0; $i < $colcnt; $i++) {
207
			$col = $results->getColumnMeta($i);
208
			$columns[] = $col['name'];
209
		}
210
		return $columns;
211
	}
212
@@ 226-229 (lines=4) @@
223
			return "error : ".$e->getMessage()."\n";
224
		}
225
		$colcnt = $results->columnCount();
226
		for ($i = 0; $i < $colcnt; $i++) {
227
			$col = $results->getColumnMeta($i);
228
			if ($name == $col['name']) return true;
229
		}
230
		return false;
231
	}
232