Permalink
Browse files

fix a few buglets in Table

git-svn-id: http://svn.php.net/repository/pear/packages/DBA_Relational/trunk@100727 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 56e9be5 commit 7da31fb757ee65776744c825cbdc76a66f57b13e Brent Cook committed Oct 23, 2002
Showing with 8 additions and 4 deletions.
  1. +4 −2 Table.php
  2. +4 −2 package.xml
View
@@ -463,7 +463,9 @@ function _packField($field, $value)
if (is_string($element)) {
$c_element = array_search($element,
$this->_schema[$field]['domain']);
- if (!is_null($c_element)) {
+ // check for both null and false for backwards
+ // compatibility
+ if (!is_null($c_element) && ($c_element!==false)) {
$c_value[] = $c_element;
}
}
@@ -1003,7 +1005,7 @@ function _cookQuery($query)
$inString = false;
$cookedQuery = '';
for ($i=0; $i < strlen($query); ++$i) {
- $chr = $query[$i];
+ $chr = $query{$i};
if ($chr =='\'') {
$inString = !$inString;
$cookedQuery .= $chr;
View
@@ -27,10 +27,12 @@ Table management extension to DBA
<release>
<license>LGPL</license>
<version>0.20</version>
- <date>2002-10-05</date>
+ <date>2002-10-22</date>
<state>devel</state>
<notes>
-Added a HTML Table formatting function to Toolbox.php
+ * Added a HTML Table formatting function to Toolbox.php
+ * Added new unary functions (avg, min, max, sum, count)
+ * Bug fixes
</notes>
<filelist>
<dir name="/" baseinstalldir="/DBA">

0 comments on commit 7da31fb

Please sign in to comment.