Commit 725b3de6 authored by Monish Deb's avatar Monish Deb

Merge pull request #5035 from TeNNoX/master

Fixed weird while-each-loop.
parents 3a6e7ed8 c8c10d52
......@@ -179,7 +179,7 @@ class civicrm_cli {
$this->_joblog = TRUE;
}
else {
while (list($short, $long) = each($this->_additional_arguments)) {
foreach ($this->_additional_arguments as $short => $long) {
if ($arg == '-' . $short || $arg == '--' . $long) {
$property = '_' . $long;
$this->$property = $value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment