cvs: pearweb /include pear-database.php

From: Date: Wed, 17 Mar 2004 07:15:46 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17474@lists.php.net to get a copy of this message
mj Wed Mar 17 02:15:46 2004 EDT Modified files: /pearweb/include pear-database.php Log: * Instead of only checking if the value for the attribute "optional" of a dependency tag is "yes", this value is converted to lowercase before checking. This way also the attribute value "Yes" becomes valid. Bug report: #1027 http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.170&r2=1.171&ty=u Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.170 pearweb/include/pear-database.php:1.171 --- pearweb/include/pear-database.php:1.170 Sun Jan 25 06:05:40 2004 +++ pearweb/include/pear-database.php Wed Mar 17 02:15:43 2004 @@ -17,7 +17,7 @@ | Tomas V.V.Cox <cox@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.170 2004/01/25 11:05:40 mj Exp $ + $Id: pear-database.php,v 1.171 2004/03/17 07:15:43 mj Exp $ */ require_once 'DB/storage.php'; @@ -1293,7 +1293,7 @@ if ($key == "release_deps") { foreach ($value as $dep) { $optional = 0; - if (!empty($dep['optional']) && $dep['optional'] == "yes") { + if (!empty($dep['optional']) && strtolower($dep['optional']) == "yes") { $optional = 1; } /* That works for now.

« previous php.pear.cvs (#17474) next »