------------------------------------------------------------
revno: 1118
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Fri 2012-03-02 20:51:30 +0100
message:
  bug 994907 corrected
modified:
  libs/Engine_aiki.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Engine_aiki.php'
--- libs/Engine_aiki.php	2012-02-21 21:00:07 +0000
+++ libs/Engine_aiki.php	2012-03-02 19:51:30 +0000
@@ -1002,19 +1002,21 @@
                     $widget_value->$parsed = $this->global_values->$parsed;
                 }
 
-                if (!isset($widget_value->$parsed)) {
-                    $widget_value->$parsed = '';
-                }
-                $widget_value->$parsed =
-                    $aiki->security->remove_markup($widget_value->$parsed);
-
-                // If there are results and the results are not from cache
-                // then cache them.
-                if ( $widget_value->$parsed and !$cached_values ) {
-                    $this->global_values->$parsed = $widget_value->$parsed;
-                }
-                $text = str_replace("(($parsed))", $widget_value->$parsed,
-                                    $text);
+                if (isset($widget_value->$parsed)) {
+					$widget_value->$parsed =
+						$aiki->security->remove_markup($widget_value->$parsed);
+					// If there are results and the results are not from cache
+					// then cache them.
+					if ( $widget_value->$parsed and !$cached_values ) {
+						$this->global_values->$parsed = $widget_value->$parsed;
+					}							
+					$text = str_replace(
+						"(($parsed))", 
+						$widget_value->$parsed,
+						$text);
+                 }
+                
+               
             } // end of if ($parsed)
         } // end of foreach
         return $text;

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to