| @@ 1688-1689 (lines=2) @@ | ||
| 1685 | $index = $serveur ? $serveur : 0; |
|
| 1686 | ||
| 1687 | if ($link = spip_connect_db('', '', '', '', '@selectdb@' . $db, $serveur, '', '')) { |
|
| 1688 | if (($db == $link['db']) && $GLOBALS['connexions'][$index] = $link) { |
|
| 1689 | return $db; |
|
| 1690 | } |
|
| 1691 | } else { |
|
| 1692 | spip_log("Impossible de selectionner la base $db", 'sqlite.' . _LOG_HS); |
|
| @@ 499-500 (lines=2) @@ | ||
| 496 | $index = $serveur ? strtolower($serveur) : 0; |
|
| 497 | ||
| 498 | if ($link = spip_connect_db('', '', '', '', $db, 'pg', '', '')) { |
|
| 499 | if (($db == $link['db']) && $GLOBALS['connexions'][$index] = $link) { |
|
| 500 | return $db; |
|
| 501 | } |
|
| 502 | } else { |
|
| 503 | return false; |
|