Author: guilhermeblanco
Date: 2008-08-26 16:25:29 +0100 (Tue, 26 Aug 2008)
New Revision: 4814
Modified:
branches/0.11/lib/Doctrine/Search.php
branches/1.0/lib/Doctrine/Search.php
Log:
fixes #1378 in 0.11 and 1.0 branches. Fixed array index dubeous access that
generates warning sometimes. Thanks for the patch!
Modified: branches/0.11/lib/Doctrine/Search.php
===================================================================
--- branches/0.11/lib/Doctrine/Search.php 2008-08-26 15:19:09 UTC (rev
4813)
+++ branches/0.11/lib/Doctrine/Search.php 2008-08-26 15:25:29 UTC (rev
4814)
@@ -129,7 +129,7 @@
} else {
foreach ($fields as $field) {
- $value = $data[$field];
+ $value = isset($data[$field]) ? $data[$field] : null;
$terms = $this->analyze($value);
Modified: branches/1.0/lib/Doctrine/Search.php
===================================================================
--- branches/1.0/lib/Doctrine/Search.php 2008-08-26 15:19:09 UTC (rev
4813)
+++ branches/1.0/lib/Doctrine/Search.php 2008-08-26 15:25:29 UTC (rev
4814)
@@ -129,7 +129,7 @@
} else {
foreach ($fields as $field) {
- $value = $data[$field];
+ $value = isset($data[$field]) ? $data[$field] : null;
$terms = $this->analyze($value);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---