[Solar-svn] Revision 3168
pmjones at solarphp.com
pmjones at solarphp.com
Tue May 20 10:50:14 CDT 2008
Solar_Sql_Model: [FIX] In method fetchNew(), use array_key_exists() vice !empty(), so that you can specify false/null/zero/empty-string values.
Modified: trunk/Solar/Sql/Model.php
===================================================================
--- trunk/Solar/Sql/Model.php 2008-05-17 22:13:22 UTC (rev 3167)
+++ trunk/Solar/Sql/Model.php 2008-05-20 15:50:14 UTC (rev 3168)
@@ -1151,7 +1151,7 @@
// loop through each specified column and collect default data
foreach ($this->_table_cols as $key => $val) {
- if (! empty($spec[$key])) {
+ if (array_key_exists($key, $spec)) {
// user-specified
$data[$key] = $spec[$key];
} else {
More information about the Solar-svn
mailing list