Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-225

Don't assign default value to varaibles passed by reference

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      CRM/Core/BAO/CustomValue.php:

      function getField(&$isBool = null) {

      The & gave me a parse error. Assigning defaults to varaiables by reference
      is not allowed (at least with php4).

      $cf =& new CRM_Core_BAO_CustomField();
      $cf->id = $this->custom_field_id;

      if (! $cf->find(true))

      { return null; }

      $isBool = $cf->data_type == Boolean ? true : false;
      return $this->typeToField($cf->data_type);
      }

      I used civicrm-drupal-php4-rev2040.tgz

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              Anonymous
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 minute
                1m
                Remaining:
                Remaining Estimate - 1 minute
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified