Fix visibility on legacy functions
[civicrm-core.git] / CRM / Utils / Wrapper.php
index 5211aa68f74fd14a1eb690dbb16354b723ca1c43..2716dd1f6780a73c90856bea4ec3e2448523807e 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +33,7 @@
  * run method as explained below.
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2017
  */
 class CRM_Utils_Wrapper {
 
@@ -62,10 +62,10 @@ class CRM_Utils_Wrapper {
   public function run($formName, $formLabel = NULL, $arguments = NULL) {
     if (is_array($arguments)) {
       $mode = CRM_Utils_Array::value('mode', $arguments);
-      $imageUpload = (bool) CRM_Utils_Array::value('imageUpload', $arguments, FALSE);
-      $addSequence = (bool) CRM_Utils_Array::value('addSequence', $arguments, FALSE);
-      $attachUpload = (bool) CRM_Utils_Array::value('attachUpload', $arguments, FALSE);
-      $ignoreKey = (bool) CRM_Utils_Array::value('ignoreKey', $arguments, FALSE);
+      $imageUpload = !empty($arguments['imageUpload']);
+      $addSequence = !empty($arguments['addSequence']);
+      $attachUpload = !empty($arguments['attachUpload']);
+      $ignoreKey = !empty($arguments['ignoreKey']);
     }
     else {
       $arguments = array();