Patch to Auth/Container/DB.php
| From: | Antonio Carlos Venancio Junior | Date: | Mon, 04 Mar 2002 19:52:55 +0000 |
| Subject: | Patch to Auth/Container/DB.php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-4897@lists.php.net to get a copy of this message | ||
People,
Here is a patch to avoid warnings if additional fields doesn't exists.
--
Cya
+++
Antonio CVS .: organiKa :.
"We use only recicled bits"
floripa@organiKa.com.br
http://www.organiKa.com.br
Key fingerprint = 9F5B 31B0 C52A 4C4D 3A37 3A9F 7304 2779 5BBE B073
--- Fix/DB.php Mon Mar 4 16:48:43 2002 +++ DB.php Mon Mar 4 16:49:04 2002 @@ -173,6 +173,8 @@ /* Include additional fields if they exist */ if ($this->options["db_fields"] != "*") { $cols = "," . $this->options["db_fields"]; + } else { + $cols = ''; } $query = sprintf("SELECT %s FROM %s Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
--- Fix/DB.php Mon Mar 4 16:48:43 2002 +++ DB.php Mon Mar 4 16:49:04 2002 @@ -173,6 +173,8 @@ /* Include additional fields if they exist */ if ($this->options["db_fields"] != "*") { $cols = "," . $this->options["db_fields"]; + } else { + $cols = ''; } $query = sprintf("SELECT %s FROM %s Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc