Author: david
Date: Mon Sep 14 13:11:32 2009
New Revision: 3268

Log:
Initialize $source variable in render_field() helper to prevent notice of 
undefined variable.

Modified:
   trunk/apps/qubit/lib/helper/QubitHelper.php

Modified: trunk/apps/qubit/lib/helper/QubitHelper.php
==============================================================================
--- trunk/apps/qubit/lib/helper/QubitHelper.php Mon Sep 14 12:11:23 2009        
(r3267)
+++ trunk/apps/qubit/lib/helper/QubitHelper.php Mon Sep 14 13:11:32 2009        
(r3268)
@@ -57,6 +57,7 @@
 function render_field($field, $object, array $options = array())
 {
   $options += array('name' => $field->getName());
+  $source = null;
 
   if (isset($object) && sfContext::getInstance()->user->getCulture() != 
$object->sourceCulture && 0 < strlen($source = $object->__get($options['name'], 
array('sourceCulture' => true))))
   {

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" 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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to