cvs: pear /DB_Table/DB Table.php

From: Date: Thu, 23 Dec 2004 17:59:14 +0000
Subject: cvs: pear /DB_Table/DB Table.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27793@lists.php.net to get a copy of this message
pmjones Thu Dec 23 12:59:14 2004 EDT Modified files: /pear/DB_Table/DB Table.php Log: fixed empty/trim problems in selectCount() checks on $count_sql['count'] http://cvs.php.net/diff.php/pear/DB_Table/DB/Table.php?r1=1.23&r2=1.24&ty=u Index: pear/DB_Table/DB/Table.php diff -u pear/DB_Table/DB/Table.php:1.23 pear/DB_Table/DB/Table.php:1.24 --- pear/DB_Table/DB/Table.php:1.23 Thu Dec 23 12:56:34 2004 +++ pear/DB_Table/DB/Table.php Thu Dec 23 12:59:13 2004 @@ -299,7 +299,7 @@ * and automated creation of QuickForm elemnts based on the column * definitions. * -* $Id: Table.php,v 1.23 2004/12/23 17:56:34 pmjones Exp $ +* $Id: Table.php,v 1.24 2004/12/23 17:59:13 pmjones Exp $ * * @author Paul M. Jones <pmjones@ciaweb.net> * @@ -889,7 +889,8 @@ $count_sql = $this->sql[$sqlkey]; // is a count-field set for the query? - if (empty(trim($count_sql['count']))) { + if (! isset($count_sql['count']) || + trim($count_sql['count']) == '') { $count_sql['count'] = '*'; }

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