Fix undefined index warning CRM-12339
authorColeman Watts <coleman@civicrm.org>
Sat, 13 Apr 2013 22:02:53 +0000 (15:02 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 00:56:17 +0000 (17:56 -0700)
CRM/Core/Region.php

index 4f03c9e613023ca2fe1ae7f4ca4fafb879d90ee8..bc125a42817a20171cafdd14e14ca75970fd1a82 100644 (file)
@@ -166,7 +166,7 @@ class CRM_Core_Region {
           $smarty->assign('snippet', $tmp);
           break;
         case 'callback':
-          $args = is_array($snippet['arguments']) ? $snippet['arguments'] : array(&$snippet, &$html);
+          $args = isset($snippet['arguments']) ? $snippet['arguments'] : array(&$snippet, &$html);
           $html .= call_user_func_array($snippet['callback'], $args);
           break;
         case 'scriptUrl':