|
@@ 1424-1426 (lines=3) @@
|
| 1421 |
|
$table = $this->table; |
| 1422 |
|
} // the table for this object |
| 1423 |
|
// check if database prefix is not added yet and then add it!!! |
| 1424 |
|
if (0 !== strpos($table, $this->db->prefix() . '_')) { |
| 1425 |
|
$table = $this->db->prefix("{$table}"); |
| 1426 |
|
} |
| 1427 |
|
$result = $this->db->queryF("SHOW TABLES LIKE '{$table}'"); |
| 1428 |
|
$found = $this->db->getRowsNum($result); |
| 1429 |
|
|
|
@@ 1449-1451 (lines=3) @@
|
| 1446 |
|
return false; |
| 1447 |
|
} // table is current || oldTable is not exist |
| 1448 |
|
// check if database prefix is not added yet and then add it!!! |
| 1449 |
|
if (0 !== strpos($oldTable, $this->db->prefix() . '_')) { |
| 1450 |
|
$oldTable = $this->db->prefix("{$oldTable}"); |
| 1451 |
|
} |
| 1452 |
|
if (!$result = $this->db->queryF("ALTER TABLE {$oldTable} RENAME {$this->table}")) { |
| 1453 |
|
xoops_error($this->db->error() . '<br>' . $sql); |
| 1454 |
|
|