[drupal-devel] [bug] undefined index: port in database.pgsql.inc on line 27

danielc drupal-devel at drupal.org
Sat Apr 2 14:45:12 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
 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().


danielc




More information about the drupal-devel mailing list