[drupal-devel] [bug] undefined index: port in database.pgsql.inc on
line 27
danielc
drupal-devel at drupal.org
Fri Apr 8 00:41:56 UTC 2005
Issue status update for http://drupal.org/node/19868
Project: Drupal
Version: cvs
Component: database system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: danielc
Updated by: danielc
Status: patch
Can this please be applied to 4-6 and HEAD?
danielc
Previous comments:
------------------------------------------------------------------------
April 2, 2005 - 09:45 : danielc
Attachment: http://drupal.org/files/issues/database.pgsql.inc.port.diff (757 bytes)
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().
More information about the drupal-devel
mailing list