Closed (fixed)
Project:
Drupal core
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2005 at 14:45 UTC
Updated:
22 Apr 2005 at 14:15 UTC
The port number for PostgreSQL $db_url's doesn't need to be set. If it's not, then $url['port'] isn't either. This situation generates the following notice:
Notice: Undefined index: port in x:\drupal\includes\database.pgsql.inc
on line 27
This patch fixes the situation by wrapping the operator in !empty().
| Comment | File | Size | Author |
|---|---|---|---|
| database.pgsql.inc.port.diff | 757 bytes | danielc |
Comments
Comment #1
danielc commentedCan this please be applied to 4-6 and HEAD?
Comment #2
dries commentedStrange that no one else can reproduce this problem.
Committed a slightly different fix to HEAD/DRUPAL-4-6.
Comment #3
danielc commentedThanks. Perhaps I'm seeing it because of running PHP 5 (5.0.4 at the moment) with E_ALL error reporting.
Comment #4
(not verified) commented