Cleanup uses of CRM_Utils_Array::value related to numbers
[civicrm-core.git] / CRM / Contact / Import / Form / DataSource.php
index e7cc48bd6cef485137fa62a2200fe3d4f88b6014..97ffa8453d8880fedc7e704b2df34faa01a4491d 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Contact_Import_Form_DataSource extends CRM_Core_Form {
     $errorFiles = ['sqlImport.errors', 'sqlImport.conflicts', 'sqlImport.duplicates', 'sqlImport.mismatch'];
 
     // check for post max size avoid when called twice
-    $snippet = CRM_Utils_Array::value('snippet', $_GET, 0);
+    $snippet = $_GET['snippet'] ?? 0;
     if (empty($snippet)) {
       CRM_Utils_Number::formatUnitSize(ini_get('post_max_size'), TRUE);
     }