Fix test error, I think this syntax is less tolerated by some php versions.
authoreileen <emcnaughton@wikimedia.org>
Tue, 29 Mar 2016 00:46:46 +0000 (13:46 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 29 Mar 2016 01:39:18 +0000 (14:39 +1300)
The code is unrelated to the PR but the PR must have triggered tests to run on this exposing test-grumpiness

CRM/Export/BAO/Export.php

index 7020d53e90aeb20397382ce25bc9ffc5a1b02a4b..408326aa03113da1992ddb84958cefffa6b26a44 100644 (file)
@@ -432,8 +432,9 @@ class CRM_Export_BAO_Export {
           }
         }
       }
-      if (!empty(self::defaultReturnProperty($exportMode))) {
-        $returnProperties[self::defaultReturnProperty($exportMode)] = 1;
+      $defaultExportMode = self::defaultReturnProperty($exportMode);
+      if (!empty($defaultExportMode)) {
+        $returnProperties[$defaultExportMode] = 1;
       }
     }
     else {