| @@ 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; |
|
| @@ 1617-1618 (lines=2) @@ | ||
| 1614 | $index = $serveur ? $serveur : 0; |
|
| 1615 | ||
| 1616 | if ($link = spip_connect_db('', '', '', '', '@selectdb@' . $db, $serveur, '', '')) { |
|
| 1617 | if (($db == $link['db']) && $GLOBALS['connexions'][$index] = $link) { |
|
| 1618 | return $db; |
|
| 1619 | } |
|
| 1620 | } else { |
|
| 1621 | spip_log("Impossible de selectionner la base $db", 'sqlite.' . _LOG_HS); |
|