Code Duplication    Length = 11-12 lines in 2 locations

htdocs/class/database/manager.php 1 location

@@ 316-327 (lines=12) @@
313
     *
314
     * @return array list of dropped tables
315
     */
316
    public function deleteTables($tables)
317
    {
318
        $deleted = array();
319
        $this->db->connect();
320
        foreach ($tables as $key => $val) {
321
            //was: if (!$this->db->query("DROP TABLE " . $this->db->prefix($key))) {
322
            if (!$this->db->query("DROP TABLE " . $this->db->prefix($val))) {
323
                $deleted[] = $val;
324
            }
325
        }
326
        return $deleted;
327
    }
328
329
    /**
330
     * Checks to see if table exists

upgrade/upd-2.4.x-to-2.5.0/dbmanager.php 1 location

@@ 214-224 (lines=11) @@
211
        return (isset($this->f_tables)) ? true : false;
212
    }
213
214
    function deleteTables($tables)
215
    {
216
        $deleted = array();
217
        $this->db->connect();
218
        foreach ($tables as $key => $val) {
219
            if (!$this->db->query("DROP TABLE " . $this->db->prefix($key))) {
220
                $deleted[] = $va;
221
            }
222
        }
223
        return $deleted;
224
    }
225
226
    function tableExists($table)
227
    {