More php 5.4 notice fixes and errors
[civicrm-core.git] / CRM / Mailing / Page / Browse.php
index bcc94654a7c33df49946ba3d505a239f434e753e..afeee905fef2a2cec48a149f37f9e138548b4164 100644 (file)
@@ -124,22 +124,19 @@ class CRM_Mailing_Page_Browse extends CRM_Core_Page {
    *
    * @return void
    */
-  function run($newArgs) {
+  function run() {
     $this->preProcess();
 
+    $newArgs = func_get_args();
     if (isset($_GET['runJobs']) || CRM_Utils_Array::value('2', $newArgs) == 'queue') {
       $config = CRM_Core_Config::singleton();
-
-
       CRM_Mailing_BAO_Job::runJobs_pre($config->mailerJobSize);
       CRM_Mailing_BAO_Job::runJobs();
       CRM_Mailing_BAO_Job::runJobs_post();
     }
 
-    $this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter',
-      'String',
-      $this
-    );
+    $this->_sortByCharacter =
+      CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this);
 
 
     // CRM-11920 all should set sortByCharacter to null, not empty string