Code Duplication    Length = 10-10 lines in 2 locations

core/Database.class.php 1 location

@@ 130-139 (lines=10) @@
127
		 * @param string $table definit la table pour laquelle on doit tester l'existance
128
		 * @return boolean
129
		 */
130
		public function TestTableExist($table) {
131
			$query = $this->getPdo()->query("SHOW TABLES LIKE '$table'");
132
133
			if ($query->rowCount() > 0) {
134
				return true;
135
			}
136
			else {
137
				return false;
138
			}
139
		}
140
141
		public function quote($quote) {
142
			return $this->getPdo()->quote($quote);

core/modules/Database.class.php 1 location

@@ 123-132 (lines=10) @@
120
		 * @param string $table definit la table pour laquelle on doit tester l'existance
121
		 * @return boolean
122
		 */
123
		public function TestTableExist($table) {
124
			$query = $this->getPdo()->query("SHOW TABLES LIKE '$table'");
125
126
			if ($query->rowCount() > 0) {
127
				return true;
128
			}
129
			else {
130
				return false;
131
			}
132
		}
133
134
		public function quote($quote) {
135
			return $this->getPdo()->quote($quote);