← Back to team overview

mahara-contributors team mailing list archive

[Bug 1394754] [NEW] calling _get_cli_params() when no params present needs fixing

 

Public bug reported:

Noticed this when testing something else

The _get_cli_params() function doesn't check if there are argv options
before trying to array_search/array_slice/foreach them

need to wrap it in a if (!empty($options)) {  }

** Affects: mahara
     Importance: Low
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
   Importance: Undecided => Low

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

** Changed in: mahara
    Milestone: None => 15.04.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1394754

Title:
  calling _get_cli_params() when no params present needs fixing

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Noticed this when testing something else

  The _get_cli_params() function doesn't check if there are argv options
  before trying to array_search/array_slice/foreach them

  need to wrap it in a if (!empty($options)) {  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1394754/+subscriptions


Follow ups

References